1
2
3
4
5
6
7 package com.linecorp.centraldogma.internal.thrift;
8
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
12
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.Set;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import javax.annotation.Generated;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
37 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2022-02-24")
38 public class CentralDogmaService {
39
40
41
42
43 public interface Iface {
44
45
46
47
48
49
50 public void createProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
51
52
53
54
55
56
57 public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
58
59
60
61
62
63
64 public void purgeProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
65
66
67
68
69
70
71 public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException;
72
73
74
75
76 public List<Project> listProjects() throws CentralDogmaException, org.apache.thrift.TException;
77
78
79
80
81 public Set<String> listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException;
82
83
84
85
86
87
88
89 public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
90
91
92
93
94
95
96
97 public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
98
99
100
101
102
103
104
105 public void purgeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
106
107
108
109
110
111
112
113 public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;
114
115
116
117
118
119
120 public List<Repository> listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
121
122
123
124
125
126
127 public Set<String> listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
128
129
130
131
132
133
134
135
136 public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException;
137
138
139
140
141
142
143
144
145
146 public List<Entry> listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
147
148
149
150
151
152
153
154
155
156 public List<Entry> getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
157
158
159
160
161
162
163
164
165
166
167 public List<Commit> getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
168
169
170
171
172
173
174
175
176
177
178 public List<Change> getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;
179
180
181
182
183
184
185
186
187
188 public List<Change> getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException;
189
190
191
192
193
194
195
196
197
198
199
200
201 public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException;
202
203
204
205
206
207
208
209
210
211 public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException;
212
213
214
215
216
217
218
219
220
221
222 public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException;
223
224
225
226
227
228
229
230
231
232
233
234 public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException;
235
236
237
238
239
240
241
242
243
244
245 public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;
246
247
248
249
250
251
252
253
254
255
256 public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;
257
258
259
260
261
262
263 public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
264
265
266
267
268
269
270
271 public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException;
272
273
274
275
276
277
278
279 public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;
280
281
282
283
284
285
286
287 public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException;
288
289
290
291
292
293
294
295 public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;
296
297
298
299
300
301
302 public List<NamedQuery> listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
303
304
305
306
307
308
309
310 public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;
311
312
313
314
315
316
317
318 public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException;
319
320
321
322
323
324
325
326 public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;
327
328
329
330
331
332
333 public List<Plugin> listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
334
335
336
337
338
339
340 public List<PluginOperation> listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException;
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365 public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException;
366
367
368
369
370
371
372
373
374 public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException;
375
376
377
378
379
380
381
382
383 public List<Subscriber> listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException;
384
385 }
386
387 public interface AsyncIface {
388
389 public void createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
390
391 public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
392
393 public void purgeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
394
395 public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
396
397 public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
398
399 public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
400
401 public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
402
403 public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
404
405 public void purgeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
406
407 public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
408
409 public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
410
411 public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
412
413 public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
414
415 public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
416
417 public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
418
419 public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
420
421 public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
422
423 public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
424
425 public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
426
427 public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
428
429 public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
430
431 public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
432
433 public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
434
435 public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
436
437 public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
438
439 public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
440
441 public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
442
443 public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
444
445 public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
446
447 public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
448
449 public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
450
451 public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
452
453 public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
454
455 public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
456
457 public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
458
459 public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
460
461 public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
462
463 public void listSubscribers(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
464
465 }
466
467 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
468 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
469 public Factory() {}
470 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
471 return new Client(prot);
472 }
473 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
474 return new Client(iprot, oprot);
475 }
476 }
477
478 public Client(org.apache.thrift.protocol.TProtocol prot)
479 {
480 super(prot, prot);
481 }
482
483 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
484 super(iprot, oprot);
485 }
486
487 public void createProject(String name) throws CentralDogmaException, org.apache.thrift.TException
488 {
489 send_createProject(name);
490 recv_createProject();
491 }
492
493 public void send_createProject(String name) throws org.apache.thrift.TException
494 {
495 createProject_args args = new createProject_args();
496 args.setName(name);
497 sendBase("createProject", args);
498 }
499
500 public void recv_createProject() throws CentralDogmaException, org.apache.thrift.TException
501 {
502 createProject_result result = new createProject_result();
503 receiveBase(result, "createProject");
504 if (result.e != null) {
505 throw result.e;
506 }
507 return;
508 }
509
510 public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException
511 {
512 send_removeProject(name);
513 recv_removeProject();
514 }
515
516 public void send_removeProject(String name) throws org.apache.thrift.TException
517 {
518 removeProject_args args = new removeProject_args();
519 args.setName(name);
520 sendBase("removeProject", args);
521 }
522
523 public void recv_removeProject() throws CentralDogmaException, org.apache.thrift.TException
524 {
525 removeProject_result result = new removeProject_result();
526 receiveBase(result, "removeProject");
527 if (result.e != null) {
528 throw result.e;
529 }
530 return;
531 }
532
533 public void purgeProject(String name) throws CentralDogmaException, org.apache.thrift.TException
534 {
535 send_purgeProject(name);
536 recv_purgeProject();
537 }
538
539 public void send_purgeProject(String name) throws org.apache.thrift.TException
540 {
541 purgeProject_args args = new purgeProject_args();
542 args.setName(name);
543 sendBase("purgeProject", args);
544 }
545
546 public void recv_purgeProject() throws CentralDogmaException, org.apache.thrift.TException
547 {
548 purgeProject_result result = new purgeProject_result();
549 receiveBase(result, "purgeProject");
550 if (result.e != null) {
551 throw result.e;
552 }
553 return;
554 }
555
556 public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException
557 {
558 send_unremoveProject(name);
559 recv_unremoveProject();
560 }
561
562 public void send_unremoveProject(String name) throws org.apache.thrift.TException
563 {
564 unremoveProject_args args = new unremoveProject_args();
565 args.setName(name);
566 sendBase("unremoveProject", args);
567 }
568
569 public void recv_unremoveProject() throws CentralDogmaException, org.apache.thrift.TException
570 {
571 unremoveProject_result result = new unremoveProject_result();
572 receiveBase(result, "unremoveProject");
573 if (result.e != null) {
574 throw result.e;
575 }
576 return;
577 }
578
579 public List<Project> listProjects() throws CentralDogmaException, org.apache.thrift.TException
580 {
581 send_listProjects();
582 return recv_listProjects();
583 }
584
585 public void send_listProjects() throws org.apache.thrift.TException
586 {
587 listProjects_args args = new listProjects_args();
588 sendBase("listProjects", args);
589 }
590
591 public List<Project> recv_listProjects() throws CentralDogmaException, org.apache.thrift.TException
592 {
593 listProjects_result result = new listProjects_result();
594 receiveBase(result, "listProjects");
595 if (result.isSetSuccess()) {
596 return result.success;
597 }
598 if (result.e != null) {
599 throw result.e;
600 }
601 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listProjects failed: unknown result");
602 }
603
604 public Set<String> listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException
605 {
606 send_listRemovedProjects();
607 return recv_listRemovedProjects();
608 }
609
610 public void send_listRemovedProjects() throws org.apache.thrift.TException
611 {
612 listRemovedProjects_args args = new listRemovedProjects_args();
613 sendBase("listRemovedProjects", args);
614 }
615
616 public Set<String> recv_listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException
617 {
618 listRemovedProjects_result result = new listRemovedProjects_result();
619 receiveBase(result, "listRemovedProjects");
620 if (result.isSetSuccess()) {
621 return result.success;
622 }
623 if (result.e != null) {
624 throw result.e;
625 }
626 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedProjects failed: unknown result");
627 }
628
629 public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
630 {
631 send_createRepository(projectName, repositoryName);
632 recv_createRepository();
633 }
634
635 public void send_createRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
636 {
637 createRepository_args args = new createRepository_args();
638 args.setProjectName(projectName);
639 args.setRepositoryName(repositoryName);
640 sendBase("createRepository", args);
641 }
642
643 public void recv_createRepository() throws CentralDogmaException, org.apache.thrift.TException
644 {
645 createRepository_result result = new createRepository_result();
646 receiveBase(result, "createRepository");
647 if (result.e != null) {
648 throw result.e;
649 }
650 return;
651 }
652
653 public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
654 {
655 send_removeRepository(projectName, repositoryName);
656 recv_removeRepository();
657 }
658
659 public void send_removeRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
660 {
661 removeRepository_args args = new removeRepository_args();
662 args.setProjectName(projectName);
663 args.setRepositoryName(repositoryName);
664 sendBase("removeRepository", args);
665 }
666
667 public void recv_removeRepository() throws CentralDogmaException, org.apache.thrift.TException
668 {
669 removeRepository_result result = new removeRepository_result();
670 receiveBase(result, "removeRepository");
671 if (result.e != null) {
672 throw result.e;
673 }
674 return;
675 }
676
677 public void purgeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
678 {
679 send_purgeRepository(projectName, repositoryName);
680 recv_purgeRepository();
681 }
682
683 public void send_purgeRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
684 {
685 purgeRepository_args args = new purgeRepository_args();
686 args.setProjectName(projectName);
687 args.setRepositoryName(repositoryName);
688 sendBase("purgeRepository", args);
689 }
690
691 public void recv_purgeRepository() throws CentralDogmaException, org.apache.thrift.TException
692 {
693 purgeRepository_result result = new purgeRepository_result();
694 receiveBase(result, "purgeRepository");
695 if (result.e != null) {
696 throw result.e;
697 }
698 return;
699 }
700
701 public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException
702 {
703 send_unremoveRepository(projectName, repositoryName);
704 recv_unremoveRepository();
705 }
706
707 public void send_unremoveRepository(String projectName, String repositoryName) throws org.apache.thrift.TException
708 {
709 unremoveRepository_args args = new unremoveRepository_args();
710 args.setProjectName(projectName);
711 args.setRepositoryName(repositoryName);
712 sendBase("unremoveRepository", args);
713 }
714
715 public void recv_unremoveRepository() throws CentralDogmaException, org.apache.thrift.TException
716 {
717 unremoveRepository_result result = new unremoveRepository_result();
718 receiveBase(result, "unremoveRepository");
719 if (result.e != null) {
720 throw result.e;
721 }
722 return;
723 }
724
725 public List<Repository> listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException
726 {
727 send_listRepositories(projectName);
728 return recv_listRepositories();
729 }
730
731 public void send_listRepositories(String projectName) throws org.apache.thrift.TException
732 {
733 listRepositories_args args = new listRepositories_args();
734 args.setProjectName(projectName);
735 sendBase("listRepositories", args);
736 }
737
738 public List<Repository> recv_listRepositories() throws CentralDogmaException, org.apache.thrift.TException
739 {
740 listRepositories_result result = new listRepositories_result();
741 receiveBase(result, "listRepositories");
742 if (result.isSetSuccess()) {
743 return result.success;
744 }
745 if (result.e != null) {
746 throw result.e;
747 }
748 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRepositories failed: unknown result");
749 }
750
751 public Set<String> listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException
752 {
753 send_listRemovedRepositories(projectName);
754 return recv_listRemovedRepositories();
755 }
756
757 public void send_listRemovedRepositories(String projectName) throws org.apache.thrift.TException
758 {
759 listRemovedRepositories_args args = new listRemovedRepositories_args();
760 args.setProjectName(projectName);
761 sendBase("listRemovedRepositories", args);
762 }
763
764 public Set<String> recv_listRemovedRepositories() throws CentralDogmaException, org.apache.thrift.TException
765 {
766 listRemovedRepositories_result result = new listRemovedRepositories_result();
767 receiveBase(result, "listRemovedRepositories");
768 if (result.isSetSuccess()) {
769 return result.success;
770 }
771 if (result.e != null) {
772 throw result.e;
773 }
774 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedRepositories failed: unknown result");
775 }
776
777 public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException
778 {
779 send_normalizeRevision(projectName, repositoryName, revision);
780 return recv_normalizeRevision();
781 }
782
783 public void send_normalizeRevision(String projectName, String repositoryName, Revision revision) throws org.apache.thrift.TException
784 {
785 normalizeRevision_args args = new normalizeRevision_args();
786 args.setProjectName(projectName);
787 args.setRepositoryName(repositoryName);
788 args.setRevision(revision);
789 sendBase("normalizeRevision", args);
790 }
791
792 public Revision recv_normalizeRevision() throws CentralDogmaException, org.apache.thrift.TException
793 {
794 normalizeRevision_result result = new normalizeRevision_result();
795 receiveBase(result, "normalizeRevision");
796 if (result.isSetSuccess()) {
797 return result.success;
798 }
799 if (result.e != null) {
800 throw result.e;
801 }
802 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "normalizeRevision failed: unknown result");
803 }
804
805 public List<Entry> listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
806 {
807 send_listFiles(projectName, repositoryName, revision, pathPattern);
808 return recv_listFiles();
809 }
810
811 public void send_listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException
812 {
813 listFiles_args args = new listFiles_args();
814 args.setProjectName(projectName);
815 args.setRepositoryName(repositoryName);
816 args.setRevision(revision);
817 args.setPathPattern(pathPattern);
818 sendBase("listFiles", args);
819 }
820
821 public List<Entry> recv_listFiles() throws CentralDogmaException, org.apache.thrift.TException
822 {
823 listFiles_result result = new listFiles_result();
824 receiveBase(result, "listFiles");
825 if (result.isSetSuccess()) {
826 return result.success;
827 }
828 if (result.e != null) {
829 throw result.e;
830 }
831 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listFiles failed: unknown result");
832 }
833
834 public List<Entry> getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
835 {
836 send_getFiles(projectName, repositoryName, revision, pathPattern);
837 return recv_getFiles();
838 }
839
840 public void send_getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException
841 {
842 getFiles_args args = new getFiles_args();
843 args.setProjectName(projectName);
844 args.setRepositoryName(repositoryName);
845 args.setRevision(revision);
846 args.setPathPattern(pathPattern);
847 sendBase("getFiles", args);
848 }
849
850 public List<Entry> recv_getFiles() throws CentralDogmaException, org.apache.thrift.TException
851 {
852 getFiles_result result = new getFiles_result();
853 receiveBase(result, "getFiles");
854 if (result.isSetSuccess()) {
855 return result.success;
856 }
857 if (result.e != null) {
858 throw result.e;
859 }
860 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFiles failed: unknown result");
861 }
862
863 public List<Commit> getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
864 {
865 send_getHistory(projectName, repositoryName, from, to, pathPattern);
866 return recv_getHistory();
867 }
868
869 public void send_getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException
870 {
871 getHistory_args args = new getHistory_args();
872 args.setProjectName(projectName);
873 args.setRepositoryName(repositoryName);
874 args.setFromRevision(from);
875 args.setToRevision(to);
876 args.setPathPattern(pathPattern);
877 sendBase("getHistory", args);
878 }
879
880 public List<Commit> recv_getHistory() throws CentralDogmaException, org.apache.thrift.TException
881 {
882 getHistory_result result = new getHistory_result();
883 receiveBase(result, "getHistory");
884 if (result.isSetSuccess()) {
885 return result.success;
886 }
887 if (result.e != null) {
888 throw result.e;
889 }
890 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistory failed: unknown result");
891 }
892
893 public List<Change> getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException
894 {
895 send_getDiffs(projectName, repositoryName, from, to, pathPattern);
896 return recv_getDiffs();
897 }
898
899 public void send_getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException
900 {
901 getDiffs_args args = new getDiffs_args();
902 args.setProjectName(projectName);
903 args.setRepositoryName(repositoryName);
904 args.setFromRevision(from);
905 args.setToRevision(to);
906 args.setPathPattern(pathPattern);
907 sendBase("getDiffs", args);
908 }
909
910 public List<Change> recv_getDiffs() throws CentralDogmaException, org.apache.thrift.TException
911 {
912 getDiffs_result result = new getDiffs_result();
913 receiveBase(result, "getDiffs");
914 if (result.isSetSuccess()) {
915 return result.success;
916 }
917 if (result.e != null) {
918 throw result.e;
919 }
920 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDiffs failed: unknown result");
921 }
922
923 public List<Change> getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException
924 {
925 send_getPreviewDiffs(projectName, repositoryName, baseRevision, changes);
926 return recv_getPreviewDiffs();
927 }
928
929 public void send_getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes) throws org.apache.thrift.TException
930 {
931 getPreviewDiffs_args args = new getPreviewDiffs_args();
932 args.setProjectName(projectName);
933 args.setRepositoryName(repositoryName);
934 args.setBaseRevision(baseRevision);
935 args.setChanges(changes);
936 sendBase("getPreviewDiffs", args);
937 }
938
939 public List<Change> recv_getPreviewDiffs() throws CentralDogmaException, org.apache.thrift.TException
940 {
941 getPreviewDiffs_result result = new getPreviewDiffs_result();
942 receiveBase(result, "getPreviewDiffs");
943 if (result.isSetSuccess()) {
944 return result.success;
945 }
946 if (result.e != null) {
947 throw result.e;
948 }
949 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviewDiffs failed: unknown result");
950 }
951
952 public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws CentralDogmaException, org.apache.thrift.TException
953 {
954 send_push(projectName, repositoryName, baseRevision, author, summary, detail, changes);
955 return recv_push();
956 }
957
958 public void send_push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes) throws org.apache.thrift.TException
959 {
960 push_args args = new push_args();
961 args.setProjectName(projectName);
962 args.setRepositoryName(repositoryName);
963 args.setBaseRevision(baseRevision);
964 args.setAuthor(author);
965 args.setSummary(summary);
966 args.setDetail(detail);
967 args.setChanges(changes);
968 sendBase("push", args);
969 }
970
971 public Commit recv_push() throws CentralDogmaException, org.apache.thrift.TException
972 {
973 push_result result = new push_result();
974 receiveBase(result, "push");
975 if (result.isSetSuccess()) {
976 return result.success;
977 }
978 if (result.e != null) {
979 throw result.e;
980 }
981 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "push failed: unknown result");
982 }
983
984 public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException
985 {
986 send_getFile(projectName, repositoryName, revision, query);
987 return recv_getFile();
988 }
989
990 public void send_getFile(String projectName, String repositoryName, Revision revision, Query query) throws org.apache.thrift.TException
991 {
992 getFile_args args = new getFile_args();
993 args.setProjectName(projectName);
994 args.setRepositoryName(repositoryName);
995 args.setRevision(revision);
996 args.setQuery(query);
997 sendBase("getFile", args);
998 }
999
1000 public GetFileResult recv_getFile() throws CentralDogmaException, org.apache.thrift.TException
1001 {
1002 getFile_result result = new getFile_result();
1003 receiveBase(result, "getFile");
1004 if (result.isSetSuccess()) {
1005 return result.success;
1006 }
1007 if (result.e != null) {
1008 throw result.e;
1009 }
1010 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFile failed: unknown result");
1011 }
1012
1013 public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException
1014 {
1015 send_diffFile(projectName, repositoryName, from, to, query);
1016 return recv_diffFile();
1017 }
1018
1019 public void send_diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws org.apache.thrift.TException
1020 {
1021 diffFile_args args = new diffFile_args();
1022 args.setProjectName(projectName);
1023 args.setRepositoryName(repositoryName);
1024 args.setFromRevision(from);
1025 args.setToRevision(to);
1026 args.setQuery(query);
1027 sendBase("diffFile", args);
1028 }
1029
1030 public DiffFileResult recv_diffFile() throws CentralDogmaException, org.apache.thrift.TException
1031 {
1032 diffFile_result result = new diffFile_result();
1033 receiveBase(result, "diffFile");
1034 if (result.isSetSuccess()) {
1035 return result.success;
1036 }
1037 if (result.e != null) {
1038 throw result.e;
1039 }
1040 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffFile failed: unknown result");
1041 }
1042
1043 public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException
1044 {
1045 send_mergeFiles(projectName, repositoryName, revision, mergeQuery);
1046 return recv_mergeFiles();
1047 }
1048
1049 public void send_mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws org.apache.thrift.TException
1050 {
1051 mergeFiles_args args = new mergeFiles_args();
1052 args.setProjectName(projectName);
1053 args.setRepositoryName(repositoryName);
1054 args.setRevision(revision);
1055 args.setMergeQuery(mergeQuery);
1056 sendBase("mergeFiles", args);
1057 }
1058
1059 public MergedEntry recv_mergeFiles() throws CentralDogmaException, org.apache.thrift.TException
1060 {
1061 mergeFiles_result result = new mergeFiles_result();
1062 receiveBase(result, "mergeFiles");
1063 if (result.isSetSuccess()) {
1064 return result.success;
1065 }
1066 if (result.e != null) {
1067 throw result.e;
1068 }
1069 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "mergeFiles failed: unknown result");
1070 }
1071
1072 public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException
1073 {
1074 send_watchRepository(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis);
1075 return recv_watchRepository();
1076 }
1077
1078 public void send_watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws org.apache.thrift.TException
1079 {
1080 watchRepository_args args = new watchRepository_args();
1081 args.setProjectName(projectName);
1082 args.setRepositoryName(repositoryName);
1083 args.setLastKnownRevision(lastKnownRevision);
1084 args.setPathPattern(pathPattern);
1085 args.setTimeoutMillis(timeoutMillis);
1086 sendBase("watchRepository", args);
1087 }
1088
1089 public WatchRepositoryResult recv_watchRepository() throws CentralDogmaException, org.apache.thrift.TException
1090 {
1091 watchRepository_result result = new watchRepository_result();
1092 receiveBase(result, "watchRepository");
1093 if (result.isSetSuccess()) {
1094 return result.success;
1095 }
1096 if (result.e != null) {
1097 throw result.e;
1098 }
1099 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchRepository failed: unknown result");
1100 }
1101
1102 public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException
1103 {
1104 send_watchFile(projectName, repositoryName, lastKnownRevision, query, timeoutMillis);
1105 return recv_watchFile();
1106 }
1107
1108 public void send_watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws org.apache.thrift.TException
1109 {
1110 watchFile_args args = new watchFile_args();
1111 args.setProjectName(projectName);
1112 args.setRepositoryName(repositoryName);
1113 args.setLastKnownRevision(lastKnownRevision);
1114 args.setQuery(query);
1115 args.setTimeoutMillis(timeoutMillis);
1116 sendBase("watchFile", args);
1117 }
1118
1119 public WatchFileResult recv_watchFile() throws CentralDogmaException, org.apache.thrift.TException
1120 {
1121 watchFile_result result = new watchFile_result();
1122 receiveBase(result, "watchFile");
1123 if (result.isSetSuccess()) {
1124 return result.success;
1125 }
1126 if (result.e != null) {
1127 throw result.e;
1128 }
1129 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchFile failed: unknown result");
1130 }
1131
1132 public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1133 {
1134 send_getSchema(projectName);
1135 return recv_getSchema();
1136 }
1137
1138 public void send_getSchema(String projectName) throws org.apache.thrift.TException
1139 {
1140 getSchema_args args = new getSchema_args();
1141 args.setProjectName(projectName);
1142 sendBase("getSchema", args);
1143 }
1144
1145 public Schema recv_getSchema() throws CentralDogmaException, org.apache.thrift.TException
1146 {
1147 getSchema_result result = new getSchema_result();
1148 receiveBase(result, "getSchema");
1149 if (result.isSetSuccess()) {
1150 return result.success;
1151 }
1152 if (result.e != null) {
1153 throw result.e;
1154 }
1155 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchema failed: unknown result");
1156 }
1157
1158 public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException
1159 {
1160 send_saveSchema(projectName, schema);
1161 recv_saveSchema();
1162 }
1163
1164 public void send_saveSchema(String projectName, Schema schema) throws org.apache.thrift.TException
1165 {
1166 saveSchema_args args = new saveSchema_args();
1167 args.setProjectName(projectName);
1168 args.setSchema(schema);
1169 sendBase("saveSchema", args);
1170 }
1171
1172 public void recv_saveSchema() throws CentralDogmaException, org.apache.thrift.TException
1173 {
1174 saveSchema_result result = new saveSchema_result();
1175 receiveBase(result, "saveSchema");
1176 if (result.e != null) {
1177 throw result.e;
1178 }
1179 return;
1180 }
1181
1182 public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException
1183 {
1184 send_getNamedQuery(projectName, name);
1185 return recv_getNamedQuery();
1186 }
1187
1188 public void send_getNamedQuery(String projectName, String name) throws org.apache.thrift.TException
1189 {
1190 getNamedQuery_args args = new getNamedQuery_args();
1191 args.setProjectName(projectName);
1192 args.setName(name);
1193 sendBase("getNamedQuery", args);
1194 }
1195
1196 public NamedQuery recv_getNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1197 {
1198 getNamedQuery_result result = new getNamedQuery_result();
1199 receiveBase(result, "getNamedQuery");
1200 if (result.isSetSuccess()) {
1201 return result.success;
1202 }
1203 if (result.e != null) {
1204 throw result.e;
1205 }
1206 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNamedQuery failed: unknown result");
1207 }
1208
1209 public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException
1210 {
1211 send_saveNamedQuery(projectName, namedQuery);
1212 recv_saveNamedQuery();
1213 }
1214
1215 public void send_saveNamedQuery(String projectName, NamedQuery namedQuery) throws org.apache.thrift.TException
1216 {
1217 saveNamedQuery_args args = new saveNamedQuery_args();
1218 args.setProjectName(projectName);
1219 args.setNamedQuery(namedQuery);
1220 sendBase("saveNamedQuery", args);
1221 }
1222
1223 public void recv_saveNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1224 {
1225 saveNamedQuery_result result = new saveNamedQuery_result();
1226 receiveBase(result, "saveNamedQuery");
1227 if (result.e != null) {
1228 throw result.e;
1229 }
1230 return;
1231 }
1232
1233 public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException
1234 {
1235 send_removeNamedQuery(projectName, name);
1236 recv_removeNamedQuery();
1237 }
1238
1239 public void send_removeNamedQuery(String projectName, String name) throws org.apache.thrift.TException
1240 {
1241 removeNamedQuery_args args = new removeNamedQuery_args();
1242 args.setProjectName(projectName);
1243 args.setName(name);
1244 sendBase("removeNamedQuery", args);
1245 }
1246
1247 public void recv_removeNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1248 {
1249 removeNamedQuery_result result = new removeNamedQuery_result();
1250 receiveBase(result, "removeNamedQuery");
1251 if (result.e != null) {
1252 throw result.e;
1253 }
1254 return;
1255 }
1256
1257 public List<NamedQuery> listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1258 {
1259 send_listNamedQueries(projectName);
1260 return recv_listNamedQueries();
1261 }
1262
1263 public void send_listNamedQueries(String projectName) throws org.apache.thrift.TException
1264 {
1265 listNamedQueries_args args = new listNamedQueries_args();
1266 args.setProjectName(projectName);
1267 sendBase("listNamedQueries", args);
1268 }
1269
1270 public List<NamedQuery> recv_listNamedQueries() throws CentralDogmaException, org.apache.thrift.TException
1271 {
1272 listNamedQueries_result result = new listNamedQueries_result();
1273 receiveBase(result, "listNamedQueries");
1274 if (result.isSetSuccess()) {
1275 return result.success;
1276 }
1277 if (result.e != null) {
1278 throw result.e;
1279 }
1280 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listNamedQueries failed: unknown result");
1281 }
1282
1283 public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException
1284 {
1285 send_getPlugin(projectName, pluginName);
1286 return recv_getPlugin();
1287 }
1288
1289 public void send_getPlugin(String projectName, String pluginName) throws org.apache.thrift.TException
1290 {
1291 getPlugin_args args = new getPlugin_args();
1292 args.setProjectName(projectName);
1293 args.setPluginName(pluginName);
1294 sendBase("getPlugin", args);
1295 }
1296
1297 public Plugin recv_getPlugin() throws CentralDogmaException, org.apache.thrift.TException
1298 {
1299 getPlugin_result result = new getPlugin_result();
1300 receiveBase(result, "getPlugin");
1301 if (result.isSetSuccess()) {
1302 return result.success;
1303 }
1304 if (result.e != null) {
1305 throw result.e;
1306 }
1307 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPlugin failed: unknown result");
1308 }
1309
1310 public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException
1311 {
1312 send_savePlugin(projectName, plugin);
1313 recv_savePlugin();
1314 }
1315
1316 public void send_savePlugin(String projectName, Plugin plugin) throws org.apache.thrift.TException
1317 {
1318 savePlugin_args args = new savePlugin_args();
1319 args.setProjectName(projectName);
1320 args.setPlugin(plugin);
1321 sendBase("savePlugin", args);
1322 }
1323
1324 public void recv_savePlugin() throws CentralDogmaException, org.apache.thrift.TException
1325 {
1326 savePlugin_result result = new savePlugin_result();
1327 receiveBase(result, "savePlugin");
1328 if (result.e != null) {
1329 throw result.e;
1330 }
1331 return;
1332 }
1333
1334 public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException
1335 {
1336 send_removePlugin(projectName, pluginName);
1337 recv_removePlugin();
1338 }
1339
1340 public void send_removePlugin(String projectName, String pluginName) throws org.apache.thrift.TException
1341 {
1342 removePlugin_args args = new removePlugin_args();
1343 args.setProjectName(projectName);
1344 args.setPluginName(pluginName);
1345 sendBase("removePlugin", args);
1346 }
1347
1348 public void recv_removePlugin() throws CentralDogmaException, org.apache.thrift.TException
1349 {
1350 removePlugin_result result = new removePlugin_result();
1351 receiveBase(result, "removePlugin");
1352 if (result.e != null) {
1353 throw result.e;
1354 }
1355 return;
1356 }
1357
1358 public List<Plugin> listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1359 {
1360 send_listPlugins(projectName);
1361 return recv_listPlugins();
1362 }
1363
1364 public void send_listPlugins(String projectName) throws org.apache.thrift.TException
1365 {
1366 listPlugins_args args = new listPlugins_args();
1367 args.setProjectName(projectName);
1368 sendBase("listPlugins", args);
1369 }
1370
1371 public List<Plugin> recv_listPlugins() throws CentralDogmaException, org.apache.thrift.TException
1372 {
1373 listPlugins_result result = new listPlugins_result();
1374 receiveBase(result, "listPlugins");
1375 if (result.isSetSuccess()) {
1376 return result.success;
1377 }
1378 if (result.e != null) {
1379 throw result.e;
1380 }
1381 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPlugins failed: unknown result");
1382 }
1383
1384 public List<PluginOperation> listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException
1385 {
1386 send_listPluginOperations(projectName);
1387 return recv_listPluginOperations();
1388 }
1389
1390 public void send_listPluginOperations(String projectName) throws org.apache.thrift.TException
1391 {
1392 listPluginOperations_args args = new listPluginOperations_args();
1393 args.setProjectName(projectName);
1394 sendBase("listPluginOperations", args);
1395 }
1396
1397 public List<PluginOperation> recv_listPluginOperations() throws CentralDogmaException, org.apache.thrift.TException
1398 {
1399 listPluginOperations_result result = new listPluginOperations_result();
1400 receiveBase(result, "listPluginOperations");
1401 if (result.isSetSuccess()) {
1402 return result.success;
1403 }
1404 if (result.e != null) {
1405 throw result.e;
1406 }
1407 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPluginOperations failed: unknown result");
1408 }
1409
1410 public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException
1411 {
1412 send_performPluginOperation(projectName, pluginName, operationName, params);
1413 return recv_performPluginOperation();
1414 }
1415
1416 public void send_performPluginOperation(String projectName, String pluginName, String operationName, String params) throws org.apache.thrift.TException
1417 {
1418 performPluginOperation_args args = new performPluginOperation_args();
1419 args.setProjectName(projectName);
1420 args.setPluginName(pluginName);
1421 args.setOperationName(operationName);
1422 args.setParams(params);
1423 sendBase("performPluginOperation", args);
1424 }
1425
1426 public String recv_performPluginOperation() throws CentralDogmaException, org.apache.thrift.TException
1427 {
1428 performPluginOperation_result result = new performPluginOperation_result();
1429 receiveBase(result, "performPluginOperation");
1430 if (result.isSetSuccess()) {
1431 return result.success;
1432 }
1433 if (result.e != null) {
1434 throw result.e;
1435 }
1436 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "performPluginOperation failed: unknown result");
1437 }
1438
1439 public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException
1440 {
1441 send_queryByNamedQuery(projectName, namedQuery, revision);
1442 return recv_queryByNamedQuery();
1443 }
1444
1445 public void send_queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws org.apache.thrift.TException
1446 {
1447 queryByNamedQuery_args args = new queryByNamedQuery_args();
1448 args.setProjectName(projectName);
1449 args.setNamedQuery(namedQuery);
1450 args.setRevision(revision);
1451 sendBase("queryByNamedQuery", args);
1452 }
1453
1454 public String recv_queryByNamedQuery() throws CentralDogmaException, org.apache.thrift.TException
1455 {
1456 queryByNamedQuery_result result = new queryByNamedQuery_result();
1457 receiveBase(result, "queryByNamedQuery");
1458 if (result.isSetSuccess()) {
1459 return result.success;
1460 }
1461 if (result.e != null) {
1462 throw result.e;
1463 }
1464 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "queryByNamedQuery failed: unknown result");
1465 }
1466
1467 public List<Subscriber> listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException
1468 {
1469 send_listSubscribers(projectName, repositoryName, path);
1470 return recv_listSubscribers();
1471 }
1472
1473 public void send_listSubscribers(String projectName, String repositoryName, String path) throws org.apache.thrift.TException
1474 {
1475 listSubscribers_args args = new listSubscribers_args();
1476 args.setProjectName(projectName);
1477 args.setRepositoryName(repositoryName);
1478 args.setPath(path);
1479 sendBase("listSubscribers", args);
1480 }
1481
1482 public List<Subscriber> recv_listSubscribers() throws CentralDogmaException, org.apache.thrift.TException
1483 {
1484 listSubscribers_result result = new listSubscribers_result();
1485 receiveBase(result, "listSubscribers");
1486 if (result.isSetSuccess()) {
1487 return result.success;
1488 }
1489 if (result.e != null) {
1490 throw result.e;
1491 }
1492 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSubscribers failed: unknown result");
1493 }
1494
1495 }
1496 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
1497 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1498 private org.apache.thrift.async.TAsyncClientManager clientManager;
1499 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1500 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1501 this.clientManager = clientManager;
1502 this.protocolFactory = protocolFactory;
1503 }
1504 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1505 return new AsyncClient(protocolFactory, clientManager, transport);
1506 }
1507 }
1508
1509 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1510 super(protocolFactory, clientManager, transport);
1511 }
1512
1513 public void createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1514 checkReady();
1515 createProject_call method_call = new createProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1516 this.___currentMethod = method_call;
1517 ___manager.call(method_call);
1518 }
1519
1520 public static class createProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1521 private String name;
1522 public createProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1523 super(client, protocolFactory, transport, resultHandler, false);
1524 this.name = name;
1525 }
1526
1527 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1528 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1529 createProject_args args = new createProject_args();
1530 args.setName(name);
1531 args.write(prot);
1532 prot.writeMessageEnd();
1533 }
1534
1535 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1536 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1537 throw new IllegalStateException("Method call not finished!");
1538 }
1539 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1540 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1541 (new Client(prot)).recv_createProject();
1542 }
1543 }
1544
1545 public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1546 checkReady();
1547 removeProject_call method_call = new removeProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1548 this.___currentMethod = method_call;
1549 ___manager.call(method_call);
1550 }
1551
1552 public static class removeProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1553 private String name;
1554 public removeProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1555 super(client, protocolFactory, transport, resultHandler, false);
1556 this.name = name;
1557 }
1558
1559 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1560 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1561 removeProject_args args = new removeProject_args();
1562 args.setName(name);
1563 args.write(prot);
1564 prot.writeMessageEnd();
1565 }
1566
1567 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1568 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1569 throw new IllegalStateException("Method call not finished!");
1570 }
1571 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1572 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1573 (new Client(prot)).recv_removeProject();
1574 }
1575 }
1576
1577 public void purgeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1578 checkReady();
1579 purgeProject_call method_call = new purgeProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1580 this.___currentMethod = method_call;
1581 ___manager.call(method_call);
1582 }
1583
1584 public static class purgeProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1585 private String name;
1586 public purgeProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1587 super(client, protocolFactory, transport, resultHandler, false);
1588 this.name = name;
1589 }
1590
1591 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1592 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("purgeProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1593 purgeProject_args args = new purgeProject_args();
1594 args.setName(name);
1595 args.write(prot);
1596 prot.writeMessageEnd();
1597 }
1598
1599 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1600 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1601 throw new IllegalStateException("Method call not finished!");
1602 }
1603 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1604 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1605 (new Client(prot)).recv_purgeProject();
1606 }
1607 }
1608
1609 public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1610 checkReady();
1611 unremoveProject_call method_call = new unremoveProject_call(name, resultHandler, this, ___protocolFactory, ___transport);
1612 this.___currentMethod = method_call;
1613 ___manager.call(method_call);
1614 }
1615
1616 public static class unremoveProject_call extends org.apache.thrift.async.TAsyncMethodCall {
1617 private String name;
1618 public unremoveProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1619 super(client, protocolFactory, transport, resultHandler, false);
1620 this.name = name;
1621 }
1622
1623 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1624 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveProject", org.apache.thrift.protocol.TMessageType.CALL, 0));
1625 unremoveProject_args args = new unremoveProject_args();
1626 args.setName(name);
1627 args.write(prot);
1628 prot.writeMessageEnd();
1629 }
1630
1631 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1632 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1633 throw new IllegalStateException("Method call not finished!");
1634 }
1635 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1636 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1637 (new Client(prot)).recv_unremoveProject();
1638 }
1639 }
1640
1641 public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1642 checkReady();
1643 listProjects_call method_call = new listProjects_call(resultHandler, this, ___protocolFactory, ___transport);
1644 this.___currentMethod = method_call;
1645 ___manager.call(method_call);
1646 }
1647
1648 public static class listProjects_call extends org.apache.thrift.async.TAsyncMethodCall {
1649 public listProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1650 super(client, protocolFactory, transport, resultHandler, false);
1651 }
1652
1653 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1654 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listProjects", org.apache.thrift.protocol.TMessageType.CALL, 0));
1655 listProjects_args args = new listProjects_args();
1656 args.write(prot);
1657 prot.writeMessageEnd();
1658 }
1659
1660 public List<Project> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1661 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1662 throw new IllegalStateException("Method call not finished!");
1663 }
1664 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1665 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1666 return (new Client(prot)).recv_listProjects();
1667 }
1668 }
1669
1670 public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1671 checkReady();
1672 listRemovedProjects_call method_call = new listRemovedProjects_call(resultHandler, this, ___protocolFactory, ___transport);
1673 this.___currentMethod = method_call;
1674 ___manager.call(method_call);
1675 }
1676
1677 public static class listRemovedProjects_call extends org.apache.thrift.async.TAsyncMethodCall {
1678 public listRemovedProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1679 super(client, protocolFactory, transport, resultHandler, false);
1680 }
1681
1682 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1683 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedProjects", org.apache.thrift.protocol.TMessageType.CALL, 0));
1684 listRemovedProjects_args args = new listRemovedProjects_args();
1685 args.write(prot);
1686 prot.writeMessageEnd();
1687 }
1688
1689 public Set<String> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1690 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1691 throw new IllegalStateException("Method call not finished!");
1692 }
1693 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1694 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1695 return (new Client(prot)).recv_listRemovedProjects();
1696 }
1697 }
1698
1699 public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1700 checkReady();
1701 createRepository_call method_call = new createRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1702 this.___currentMethod = method_call;
1703 ___manager.call(method_call);
1704 }
1705
1706 public static class createRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1707 private String projectName;
1708 private String repositoryName;
1709 public createRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1710 super(client, protocolFactory, transport, resultHandler, false);
1711 this.projectName = projectName;
1712 this.repositoryName = repositoryName;
1713 }
1714
1715 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1716 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1717 createRepository_args args = new createRepository_args();
1718 args.setProjectName(projectName);
1719 args.setRepositoryName(repositoryName);
1720 args.write(prot);
1721 prot.writeMessageEnd();
1722 }
1723
1724 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1725 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1726 throw new IllegalStateException("Method call not finished!");
1727 }
1728 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1729 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1730 (new Client(prot)).recv_createRepository();
1731 }
1732 }
1733
1734 public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1735 checkReady();
1736 removeRepository_call method_call = new removeRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1737 this.___currentMethod = method_call;
1738 ___manager.call(method_call);
1739 }
1740
1741 public static class removeRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1742 private String projectName;
1743 private String repositoryName;
1744 public removeRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1745 super(client, protocolFactory, transport, resultHandler, false);
1746 this.projectName = projectName;
1747 this.repositoryName = repositoryName;
1748 }
1749
1750 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1751 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1752 removeRepository_args args = new removeRepository_args();
1753 args.setProjectName(projectName);
1754 args.setRepositoryName(repositoryName);
1755 args.write(prot);
1756 prot.writeMessageEnd();
1757 }
1758
1759 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1760 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1761 throw new IllegalStateException("Method call not finished!");
1762 }
1763 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1764 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1765 (new Client(prot)).recv_removeRepository();
1766 }
1767 }
1768
1769 public void purgeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1770 checkReady();
1771 purgeRepository_call method_call = new purgeRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1772 this.___currentMethod = method_call;
1773 ___manager.call(method_call);
1774 }
1775
1776 public static class purgeRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1777 private String projectName;
1778 private String repositoryName;
1779 public purgeRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1780 super(client, protocolFactory, transport, resultHandler, false);
1781 this.projectName = projectName;
1782 this.repositoryName = repositoryName;
1783 }
1784
1785 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1786 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("purgeRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1787 purgeRepository_args args = new purgeRepository_args();
1788 args.setProjectName(projectName);
1789 args.setRepositoryName(repositoryName);
1790 args.write(prot);
1791 prot.writeMessageEnd();
1792 }
1793
1794 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1795 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1796 throw new IllegalStateException("Method call not finished!");
1797 }
1798 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1799 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1800 (new Client(prot)).recv_purgeRepository();
1801 }
1802 }
1803
1804 public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1805 checkReady();
1806 unremoveRepository_call method_call = new unremoveRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport);
1807 this.___currentMethod = method_call;
1808 ___manager.call(method_call);
1809 }
1810
1811 public static class unremoveRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
1812 private String projectName;
1813 private String repositoryName;
1814 public unremoveRepository_call(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1815 super(client, protocolFactory, transport, resultHandler, false);
1816 this.projectName = projectName;
1817 this.repositoryName = repositoryName;
1818 }
1819
1820 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1821 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
1822 unremoveRepository_args args = new unremoveRepository_args();
1823 args.setProjectName(projectName);
1824 args.setRepositoryName(repositoryName);
1825 args.write(prot);
1826 prot.writeMessageEnd();
1827 }
1828
1829 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
1830 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1831 throw new IllegalStateException("Method call not finished!");
1832 }
1833 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1834 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1835 (new Client(prot)).recv_unremoveRepository();
1836 }
1837 }
1838
1839 public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1840 checkReady();
1841 listRepositories_call method_call = new listRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
1842 this.___currentMethod = method_call;
1843 ___manager.call(method_call);
1844 }
1845
1846 public static class listRepositories_call extends org.apache.thrift.async.TAsyncMethodCall {
1847 private String projectName;
1848 public listRepositories_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1849 super(client, protocolFactory, transport, resultHandler, false);
1850 this.projectName = projectName;
1851 }
1852
1853 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1854 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0));
1855 listRepositories_args args = new listRepositories_args();
1856 args.setProjectName(projectName);
1857 args.write(prot);
1858 prot.writeMessageEnd();
1859 }
1860
1861 public List<Repository> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1862 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1863 throw new IllegalStateException("Method call not finished!");
1864 }
1865 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1866 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1867 return (new Client(prot)).recv_listRepositories();
1868 }
1869 }
1870
1871 public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1872 checkReady();
1873 listRemovedRepositories_call method_call = new listRemovedRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
1874 this.___currentMethod = method_call;
1875 ___manager.call(method_call);
1876 }
1877
1878 public static class listRemovedRepositories_call extends org.apache.thrift.async.TAsyncMethodCall {
1879 private String projectName;
1880 public listRemovedRepositories_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1881 super(client, protocolFactory, transport, resultHandler, false);
1882 this.projectName = projectName;
1883 }
1884
1885 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1886 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0));
1887 listRemovedRepositories_args args = new listRemovedRepositories_args();
1888 args.setProjectName(projectName);
1889 args.write(prot);
1890 prot.writeMessageEnd();
1891 }
1892
1893 public Set<String> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1894 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1895 throw new IllegalStateException("Method call not finished!");
1896 }
1897 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1898 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1899 return (new Client(prot)).recv_listRemovedRepositories();
1900 }
1901 }
1902
1903 public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1904 checkReady();
1905 normalizeRevision_call method_call = new normalizeRevision_call(projectName, repositoryName, revision, resultHandler, this, ___protocolFactory, ___transport);
1906 this.___currentMethod = method_call;
1907 ___manager.call(method_call);
1908 }
1909
1910 public static class normalizeRevision_call extends org.apache.thrift.async.TAsyncMethodCall {
1911 private String projectName;
1912 private String repositoryName;
1913 private Revision revision;
1914 public normalizeRevision_call(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1915 super(client, protocolFactory, transport, resultHandler, false);
1916 this.projectName = projectName;
1917 this.repositoryName = repositoryName;
1918 this.revision = revision;
1919 }
1920
1921 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1922 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("normalizeRevision", org.apache.thrift.protocol.TMessageType.CALL, 0));
1923 normalizeRevision_args args = new normalizeRevision_args();
1924 args.setProjectName(projectName);
1925 args.setRepositoryName(repositoryName);
1926 args.setRevision(revision);
1927 args.write(prot);
1928 prot.writeMessageEnd();
1929 }
1930
1931 public Revision getResult() throws CentralDogmaException, org.apache.thrift.TException {
1932 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1933 throw new IllegalStateException("Method call not finished!");
1934 }
1935 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1936 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1937 return (new Client(prot)).recv_normalizeRevision();
1938 }
1939 }
1940
1941 public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1942 checkReady();
1943 listFiles_call method_call = new listFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1944 this.___currentMethod = method_call;
1945 ___manager.call(method_call);
1946 }
1947
1948 public static class listFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
1949 private String projectName;
1950 private String repositoryName;
1951 private Revision revision;
1952 private String pathPattern;
1953 public listFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1954 super(client, protocolFactory, transport, resultHandler, false);
1955 this.projectName = projectName;
1956 this.repositoryName = repositoryName;
1957 this.revision = revision;
1958 this.pathPattern = pathPattern;
1959 }
1960
1961 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1962 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
1963 listFiles_args args = new listFiles_args();
1964 args.setProjectName(projectName);
1965 args.setRepositoryName(repositoryName);
1966 args.setRevision(revision);
1967 args.setPathPattern(pathPattern);
1968 args.write(prot);
1969 prot.writeMessageEnd();
1970 }
1971
1972 public List<Entry> getResult() throws CentralDogmaException, org.apache.thrift.TException {
1973 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1974 throw new IllegalStateException("Method call not finished!");
1975 }
1976 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1977 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1978 return (new Client(prot)).recv_listFiles();
1979 }
1980 }
1981
1982 public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1983 checkReady();
1984 getFiles_call method_call = new getFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
1985 this.___currentMethod = method_call;
1986 ___manager.call(method_call);
1987 }
1988
1989 public static class getFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
1990 private String projectName;
1991 private String repositoryName;
1992 private Revision revision;
1993 private String pathPattern;
1994 public getFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1995 super(client, protocolFactory, transport, resultHandler, false);
1996 this.projectName = projectName;
1997 this.repositoryName = repositoryName;
1998 this.revision = revision;
1999 this.pathPattern = pathPattern;
2000 }
2001
2002 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2003 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
2004 getFiles_args args = new getFiles_args();
2005 args.setProjectName(projectName);
2006 args.setRepositoryName(repositoryName);
2007 args.setRevision(revision);
2008 args.setPathPattern(pathPattern);
2009 args.write(prot);
2010 prot.writeMessageEnd();
2011 }
2012
2013 public List<Entry> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2014 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2015 throw new IllegalStateException("Method call not finished!");
2016 }
2017 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2018 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2019 return (new Client(prot)).recv_getFiles();
2020 }
2021 }
2022
2023 public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2024 checkReady();
2025 getHistory_call method_call = new getHistory_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
2026 this.___currentMethod = method_call;
2027 ___manager.call(method_call);
2028 }
2029
2030 public static class getHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
2031 private String projectName;
2032 private String repositoryName;
2033 private Revision from;
2034 private Revision to;
2035 private String pathPattern;
2036 public getHistory_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2037 super(client, protocolFactory, transport, resultHandler, false);
2038 this.projectName = projectName;
2039 this.repositoryName = repositoryName;
2040 this.from = from;
2041 this.to = to;
2042 this.pathPattern = pathPattern;
2043 }
2044
2045 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2046 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2047 getHistory_args args = new getHistory_args();
2048 args.setProjectName(projectName);
2049 args.setRepositoryName(repositoryName);
2050 args.setFromRevision(from);
2051 args.setToRevision(to);
2052 args.setPathPattern(pathPattern);
2053 args.write(prot);
2054 prot.writeMessageEnd();
2055 }
2056
2057 public List<Commit> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2058 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2059 throw new IllegalStateException("Method call not finished!");
2060 }
2061 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2062 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2063 return (new Client(prot)).recv_getHistory();
2064 }
2065 }
2066
2067 public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2068 checkReady();
2069 getDiffs_call method_call = new getDiffs_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport);
2070 this.___currentMethod = method_call;
2071 ___manager.call(method_call);
2072 }
2073
2074 public static class getDiffs_call extends org.apache.thrift.async.TAsyncMethodCall {
2075 private String projectName;
2076 private String repositoryName;
2077 private Revision from;
2078 private Revision to;
2079 private String pathPattern;
2080 public getDiffs_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2081 super(client, protocolFactory, transport, resultHandler, false);
2082 this.projectName = projectName;
2083 this.repositoryName = repositoryName;
2084 this.from = from;
2085 this.to = to;
2086 this.pathPattern = pathPattern;
2087 }
2088
2089 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2090 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2091 getDiffs_args args = new getDiffs_args();
2092 args.setProjectName(projectName);
2093 args.setRepositoryName(repositoryName);
2094 args.setFromRevision(from);
2095 args.setToRevision(to);
2096 args.setPathPattern(pathPattern);
2097 args.write(prot);
2098 prot.writeMessageEnd();
2099 }
2100
2101 public List<Change> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2102 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2103 throw new IllegalStateException("Method call not finished!");
2104 }
2105 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2106 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2107 return (new Client(prot)).recv_getDiffs();
2108 }
2109 }
2110
2111 public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2112 checkReady();
2113 getPreviewDiffs_call method_call = new getPreviewDiffs_call(projectName, repositoryName, baseRevision, changes, resultHandler, this, ___protocolFactory, ___transport);
2114 this.___currentMethod = method_call;
2115 ___manager.call(method_call);
2116 }
2117
2118 public static class getPreviewDiffs_call extends org.apache.thrift.async.TAsyncMethodCall {
2119 private String projectName;
2120 private String repositoryName;
2121 private Revision baseRevision;
2122 private List<Change> changes;
2123 public getPreviewDiffs_call(String projectName, String repositoryName, Revision baseRevision, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2124 super(client, protocolFactory, transport, resultHandler, false);
2125 this.projectName = projectName;
2126 this.repositoryName = repositoryName;
2127 this.baseRevision = baseRevision;
2128 this.changes = changes;
2129 }
2130
2131 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2132 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPreviewDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2133 getPreviewDiffs_args args = new getPreviewDiffs_args();
2134 args.setProjectName(projectName);
2135 args.setRepositoryName(repositoryName);
2136 args.setBaseRevision(baseRevision);
2137 args.setChanges(changes);
2138 args.write(prot);
2139 prot.writeMessageEnd();
2140 }
2141
2142 public List<Change> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2143 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2144 throw new IllegalStateException("Method call not finished!");
2145 }
2146 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2147 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2148 return (new Client(prot)).recv_getPreviewDiffs();
2149 }
2150 }
2151
2152 public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2153 checkReady();
2154 push_call method_call = new push_call(projectName, repositoryName, baseRevision, author, summary, detail, changes, resultHandler, this, ___protocolFactory, ___transport);
2155 this.___currentMethod = method_call;
2156 ___manager.call(method_call);
2157 }
2158
2159 public static class push_call extends org.apache.thrift.async.TAsyncMethodCall {
2160 private String projectName;
2161 private String repositoryName;
2162 private Revision baseRevision;
2163 private Author author;
2164 private String summary;
2165 private Comment detail;
2166 private List<Change> changes;
2167 public push_call(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List<Change> changes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2168 super(client, protocolFactory, transport, resultHandler, false);
2169 this.projectName = projectName;
2170 this.repositoryName = repositoryName;
2171 this.baseRevision = baseRevision;
2172 this.author = author;
2173 this.summary = summary;
2174 this.detail = detail;
2175 this.changes = changes;
2176 }
2177
2178 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2179 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("push", org.apache.thrift.protocol.TMessageType.CALL, 0));
2180 push_args args = new push_args();
2181 args.setProjectName(projectName);
2182 args.setRepositoryName(repositoryName);
2183 args.setBaseRevision(baseRevision);
2184 args.setAuthor(author);
2185 args.setSummary(summary);
2186 args.setDetail(detail);
2187 args.setChanges(changes);
2188 args.write(prot);
2189 prot.writeMessageEnd();
2190 }
2191
2192 public Commit getResult() throws CentralDogmaException, org.apache.thrift.TException {
2193 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2194 throw new IllegalStateException("Method call not finished!");
2195 }
2196 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2197 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2198 return (new Client(prot)).recv_push();
2199 }
2200 }
2201
2202 public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2203 checkReady();
2204 getFile_call method_call = new getFile_call(projectName, repositoryName, revision, query, resultHandler, this, ___protocolFactory, ___transport);
2205 this.___currentMethod = method_call;
2206 ___manager.call(method_call);
2207 }
2208
2209 public static class getFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2210 private String projectName;
2211 private String repositoryName;
2212 private Revision revision;
2213 private Query query;
2214 public getFile_call(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2215 super(client, protocolFactory, transport, resultHandler, false);
2216 this.projectName = projectName;
2217 this.repositoryName = repositoryName;
2218 this.revision = revision;
2219 this.query = query;
2220 }
2221
2222 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2223 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2224 getFile_args args = new getFile_args();
2225 args.setProjectName(projectName);
2226 args.setRepositoryName(repositoryName);
2227 args.setRevision(revision);
2228 args.setQuery(query);
2229 args.write(prot);
2230 prot.writeMessageEnd();
2231 }
2232
2233 public GetFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2234 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2235 throw new IllegalStateException("Method call not finished!");
2236 }
2237 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2238 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2239 return (new Client(prot)).recv_getFile();
2240 }
2241 }
2242
2243 public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2244 checkReady();
2245 diffFile_call method_call = new diffFile_call(projectName, repositoryName, from, to, query, resultHandler, this, ___protocolFactory, ___transport);
2246 this.___currentMethod = method_call;
2247 ___manager.call(method_call);
2248 }
2249
2250 public static class diffFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2251 private String projectName;
2252 private String repositoryName;
2253 private Revision from;
2254 private Revision to;
2255 private Query query;
2256 public diffFile_call(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2257 super(client, protocolFactory, transport, resultHandler, false);
2258 this.projectName = projectName;
2259 this.repositoryName = repositoryName;
2260 this.from = from;
2261 this.to = to;
2262 this.query = query;
2263 }
2264
2265 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2266 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2267 diffFile_args args = new diffFile_args();
2268 args.setProjectName(projectName);
2269 args.setRepositoryName(repositoryName);
2270 args.setFromRevision(from);
2271 args.setToRevision(to);
2272 args.setQuery(query);
2273 args.write(prot);
2274 prot.writeMessageEnd();
2275 }
2276
2277 public DiffFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2278 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2279 throw new IllegalStateException("Method call not finished!");
2280 }
2281 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2282 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2283 return (new Client(prot)).recv_diffFile();
2284 }
2285 }
2286
2287 public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2288 checkReady();
2289 mergeFiles_call method_call = new mergeFiles_call(projectName, repositoryName, revision, mergeQuery, resultHandler, this, ___protocolFactory, ___transport);
2290 this.___currentMethod = method_call;
2291 ___manager.call(method_call);
2292 }
2293
2294 public static class mergeFiles_call extends org.apache.thrift.async.TAsyncMethodCall {
2295 private String projectName;
2296 private String repositoryName;
2297 private Revision revision;
2298 private MergeQuery mergeQuery;
2299 public mergeFiles_call(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2300 super(client, protocolFactory, transport, resultHandler, false);
2301 this.projectName = projectName;
2302 this.repositoryName = repositoryName;
2303 this.revision = revision;
2304 this.mergeQuery = mergeQuery;
2305 }
2306
2307 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2308 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeFiles", org.apache.thrift.protocol.TMessageType.CALL, 0));
2309 mergeFiles_args args = new mergeFiles_args();
2310 args.setProjectName(projectName);
2311 args.setRepositoryName(repositoryName);
2312 args.setRevision(revision);
2313 args.setMergeQuery(mergeQuery);
2314 args.write(prot);
2315 prot.writeMessageEnd();
2316 }
2317
2318 public MergedEntry getResult() throws CentralDogmaException, org.apache.thrift.TException {
2319 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2320 throw new IllegalStateException("Method call not finished!");
2321 }
2322 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2323 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2324 return (new Client(prot)).recv_mergeFiles();
2325 }
2326 }
2327
2328 public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2329 checkReady();
2330 watchRepository_call method_call = new watchRepository_call(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport);
2331 this.___currentMethod = method_call;
2332 ___manager.call(method_call);
2333 }
2334
2335 public static class watchRepository_call extends org.apache.thrift.async.TAsyncMethodCall {
2336 private String projectName;
2337 private String repositoryName;
2338 private Revision lastKnownRevision;
2339 private String pathPattern;
2340 private long timeoutMillis;
2341 public watchRepository_call(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2342 super(client, protocolFactory, transport, resultHandler, false);
2343 this.projectName = projectName;
2344 this.repositoryName = repositoryName;
2345 this.lastKnownRevision = lastKnownRevision;
2346 this.pathPattern = pathPattern;
2347 this.timeoutMillis = timeoutMillis;
2348 }
2349
2350 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2351 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchRepository", org.apache.thrift.protocol.TMessageType.CALL, 0));
2352 watchRepository_args args = new watchRepository_args();
2353 args.setProjectName(projectName);
2354 args.setRepositoryName(repositoryName);
2355 args.setLastKnownRevision(lastKnownRevision);
2356 args.setPathPattern(pathPattern);
2357 args.setTimeoutMillis(timeoutMillis);
2358 args.write(prot);
2359 prot.writeMessageEnd();
2360 }
2361
2362 public WatchRepositoryResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2363 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2364 throw new IllegalStateException("Method call not finished!");
2365 }
2366 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2367 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2368 return (new Client(prot)).recv_watchRepository();
2369 }
2370 }
2371
2372 public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2373 checkReady();
2374 watchFile_call method_call = new watchFile_call(projectName, repositoryName, lastKnownRevision, query, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport);
2375 this.___currentMethod = method_call;
2376 ___manager.call(method_call);
2377 }
2378
2379 public static class watchFile_call extends org.apache.thrift.async.TAsyncMethodCall {
2380 private String projectName;
2381 private String repositoryName;
2382 private Revision lastKnownRevision;
2383 private Query query;
2384 private long timeoutMillis;
2385 public watchFile_call(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2386 super(client, protocolFactory, transport, resultHandler, false);
2387 this.projectName = projectName;
2388 this.repositoryName = repositoryName;
2389 this.lastKnownRevision = lastKnownRevision;
2390 this.query = query;
2391 this.timeoutMillis = timeoutMillis;
2392 }
2393
2394 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2395 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchFile", org.apache.thrift.protocol.TMessageType.CALL, 0));
2396 watchFile_args args = new watchFile_args();
2397 args.setProjectName(projectName);
2398 args.setRepositoryName(repositoryName);
2399 args.setLastKnownRevision(lastKnownRevision);
2400 args.setQuery(query);
2401 args.setTimeoutMillis(timeoutMillis);
2402 args.write(prot);
2403 prot.writeMessageEnd();
2404 }
2405
2406 public WatchFileResult getResult() throws CentralDogmaException, org.apache.thrift.TException {
2407 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2408 throw new IllegalStateException("Method call not finished!");
2409 }
2410 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2411 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2412 return (new Client(prot)).recv_watchFile();
2413 }
2414 }
2415
2416 public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2417 checkReady();
2418 getSchema_call method_call = new getSchema_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2419 this.___currentMethod = method_call;
2420 ___manager.call(method_call);
2421 }
2422
2423 public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
2424 private String projectName;
2425 public getSchema_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2426 super(client, protocolFactory, transport, resultHandler, false);
2427 this.projectName = projectName;
2428 }
2429
2430 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2431 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
2432 getSchema_args args = new getSchema_args();
2433 args.setProjectName(projectName);
2434 args.write(prot);
2435 prot.writeMessageEnd();
2436 }
2437
2438 public Schema getResult() throws CentralDogmaException, org.apache.thrift.TException {
2439 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2440 throw new IllegalStateException("Method call not finished!");
2441 }
2442 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2443 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2444 return (new Client(prot)).recv_getSchema();
2445 }
2446 }
2447
2448 public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2449 checkReady();
2450 saveSchema_call method_call = new saveSchema_call(projectName, schema, resultHandler, this, ___protocolFactory, ___transport);
2451 this.___currentMethod = method_call;
2452 ___manager.call(method_call);
2453 }
2454
2455 public static class saveSchema_call extends org.apache.thrift.async.TAsyncMethodCall {
2456 private String projectName;
2457 private Schema schema;
2458 public saveSchema_call(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2459 super(client, protocolFactory, transport, resultHandler, false);
2460 this.projectName = projectName;
2461 this.schema = schema;
2462 }
2463
2464 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2465 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveSchema", org.apache.thrift.protocol.TMessageType.CALL, 0));
2466 saveSchema_args args = new saveSchema_args();
2467 args.setProjectName(projectName);
2468 args.setSchema(schema);
2469 args.write(prot);
2470 prot.writeMessageEnd();
2471 }
2472
2473 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2474 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2475 throw new IllegalStateException("Method call not finished!");
2476 }
2477 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2478 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2479 (new Client(prot)).recv_saveSchema();
2480 }
2481 }
2482
2483 public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2484 checkReady();
2485 getNamedQuery_call method_call = new getNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport);
2486 this.___currentMethod = method_call;
2487 ___manager.call(method_call);
2488 }
2489
2490 public static class getNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2491 private String projectName;
2492 private String name;
2493 public getNamedQuery_call(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2494 super(client, protocolFactory, transport, resultHandler, false);
2495 this.projectName = projectName;
2496 this.name = name;
2497 }
2498
2499 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2500 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2501 getNamedQuery_args args = new getNamedQuery_args();
2502 args.setProjectName(projectName);
2503 args.setName(name);
2504 args.write(prot);
2505 prot.writeMessageEnd();
2506 }
2507
2508 public NamedQuery getResult() throws CentralDogmaException, org.apache.thrift.TException {
2509 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2510 throw new IllegalStateException("Method call not finished!");
2511 }
2512 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2513 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2514 return (new Client(prot)).recv_getNamedQuery();
2515 }
2516 }
2517
2518 public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2519 checkReady();
2520 saveNamedQuery_call method_call = new saveNamedQuery_call(projectName, namedQuery, resultHandler, this, ___protocolFactory, ___transport);
2521 this.___currentMethod = method_call;
2522 ___manager.call(method_call);
2523 }
2524
2525 public static class saveNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2526 private String projectName;
2527 private NamedQuery namedQuery;
2528 public saveNamedQuery_call(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2529 super(client, protocolFactory, transport, resultHandler, false);
2530 this.projectName = projectName;
2531 this.namedQuery = namedQuery;
2532 }
2533
2534 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2535 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2536 saveNamedQuery_args args = new saveNamedQuery_args();
2537 args.setProjectName(projectName);
2538 args.setNamedQuery(namedQuery);
2539 args.write(prot);
2540 prot.writeMessageEnd();
2541 }
2542
2543 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2544 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2545 throw new IllegalStateException("Method call not finished!");
2546 }
2547 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2548 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2549 (new Client(prot)).recv_saveNamedQuery();
2550 }
2551 }
2552
2553 public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2554 checkReady();
2555 removeNamedQuery_call method_call = new removeNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport);
2556 this.___currentMethod = method_call;
2557 ___manager.call(method_call);
2558 }
2559
2560 public static class removeNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2561 private String projectName;
2562 private String name;
2563 public removeNamedQuery_call(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2564 super(client, protocolFactory, transport, resultHandler, false);
2565 this.projectName = projectName;
2566 this.name = name;
2567 }
2568
2569 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2570 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2571 removeNamedQuery_args args = new removeNamedQuery_args();
2572 args.setProjectName(projectName);
2573 args.setName(name);
2574 args.write(prot);
2575 prot.writeMessageEnd();
2576 }
2577
2578 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2579 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2580 throw new IllegalStateException("Method call not finished!");
2581 }
2582 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2583 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2584 (new Client(prot)).recv_removeNamedQuery();
2585 }
2586 }
2587
2588 public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2589 checkReady();
2590 listNamedQueries_call method_call = new listNamedQueries_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2591 this.___currentMethod = method_call;
2592 ___manager.call(method_call);
2593 }
2594
2595 public static class listNamedQueries_call extends org.apache.thrift.async.TAsyncMethodCall {
2596 private String projectName;
2597 public listNamedQueries_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2598 super(client, protocolFactory, transport, resultHandler, false);
2599 this.projectName = projectName;
2600 }
2601
2602 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2603 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listNamedQueries", org.apache.thrift.protocol.TMessageType.CALL, 0));
2604 listNamedQueries_args args = new listNamedQueries_args();
2605 args.setProjectName(projectName);
2606 args.write(prot);
2607 prot.writeMessageEnd();
2608 }
2609
2610 public List<NamedQuery> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2611 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2612 throw new IllegalStateException("Method call not finished!");
2613 }
2614 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2615 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2616 return (new Client(prot)).recv_listNamedQueries();
2617 }
2618 }
2619
2620 public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2621 checkReady();
2622 getPlugin_call method_call = new getPlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport);
2623 this.___currentMethod = method_call;
2624 ___manager.call(method_call);
2625 }
2626
2627 public static class getPlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2628 private String projectName;
2629 private String pluginName;
2630 public getPlugin_call(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2631 super(client, protocolFactory, transport, resultHandler, false);
2632 this.projectName = projectName;
2633 this.pluginName = pluginName;
2634 }
2635
2636 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2637 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2638 getPlugin_args args = new getPlugin_args();
2639 args.setProjectName(projectName);
2640 args.setPluginName(pluginName);
2641 args.write(prot);
2642 prot.writeMessageEnd();
2643 }
2644
2645 public Plugin getResult() throws CentralDogmaException, org.apache.thrift.TException {
2646 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2647 throw new IllegalStateException("Method call not finished!");
2648 }
2649 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2650 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2651 return (new Client(prot)).recv_getPlugin();
2652 }
2653 }
2654
2655 public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2656 checkReady();
2657 savePlugin_call method_call = new savePlugin_call(projectName, plugin, resultHandler, this, ___protocolFactory, ___transport);
2658 this.___currentMethod = method_call;
2659 ___manager.call(method_call);
2660 }
2661
2662 public static class savePlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2663 private String projectName;
2664 private Plugin plugin;
2665 public savePlugin_call(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2666 super(client, protocolFactory, transport, resultHandler, false);
2667 this.projectName = projectName;
2668 this.plugin = plugin;
2669 }
2670
2671 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2672 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("savePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2673 savePlugin_args args = new savePlugin_args();
2674 args.setProjectName(projectName);
2675 args.setPlugin(plugin);
2676 args.write(prot);
2677 prot.writeMessageEnd();
2678 }
2679
2680 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2681 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2682 throw new IllegalStateException("Method call not finished!");
2683 }
2684 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2685 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2686 (new Client(prot)).recv_savePlugin();
2687 }
2688 }
2689
2690 public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2691 checkReady();
2692 removePlugin_call method_call = new removePlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport);
2693 this.___currentMethod = method_call;
2694 ___manager.call(method_call);
2695 }
2696
2697 public static class removePlugin_call extends org.apache.thrift.async.TAsyncMethodCall {
2698 private String projectName;
2699 private String pluginName;
2700 public removePlugin_call(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2701 super(client, protocolFactory, transport, resultHandler, false);
2702 this.projectName = projectName;
2703 this.pluginName = pluginName;
2704 }
2705
2706 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2707 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0));
2708 removePlugin_args args = new removePlugin_args();
2709 args.setProjectName(projectName);
2710 args.setPluginName(pluginName);
2711 args.write(prot);
2712 prot.writeMessageEnd();
2713 }
2714
2715 public void getResult() throws CentralDogmaException, org.apache.thrift.TException {
2716 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2717 throw new IllegalStateException("Method call not finished!");
2718 }
2719 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2720 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2721 (new Client(prot)).recv_removePlugin();
2722 }
2723 }
2724
2725 public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2726 checkReady();
2727 listPlugins_call method_call = new listPlugins_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2728 this.___currentMethod = method_call;
2729 ___manager.call(method_call);
2730 }
2731
2732 public static class listPlugins_call extends org.apache.thrift.async.TAsyncMethodCall {
2733 private String projectName;
2734 public listPlugins_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2735 super(client, protocolFactory, transport, resultHandler, false);
2736 this.projectName = projectName;
2737 }
2738
2739 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2740 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPlugins", org.apache.thrift.protocol.TMessageType.CALL, 0));
2741 listPlugins_args args = new listPlugins_args();
2742 args.setProjectName(projectName);
2743 args.write(prot);
2744 prot.writeMessageEnd();
2745 }
2746
2747 public List<Plugin> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2748 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2749 throw new IllegalStateException("Method call not finished!");
2750 }
2751 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2752 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2753 return (new Client(prot)).recv_listPlugins();
2754 }
2755 }
2756
2757 public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2758 checkReady();
2759 listPluginOperations_call method_call = new listPluginOperations_call(projectName, resultHandler, this, ___protocolFactory, ___transport);
2760 this.___currentMethod = method_call;
2761 ___manager.call(method_call);
2762 }
2763
2764 public static class listPluginOperations_call extends org.apache.thrift.async.TAsyncMethodCall {
2765 private String projectName;
2766 public listPluginOperations_call(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2767 super(client, protocolFactory, transport, resultHandler, false);
2768 this.projectName = projectName;
2769 }
2770
2771 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2772 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPluginOperations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2773 listPluginOperations_args args = new listPluginOperations_args();
2774 args.setProjectName(projectName);
2775 args.write(prot);
2776 prot.writeMessageEnd();
2777 }
2778
2779 public List<PluginOperation> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2780 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2781 throw new IllegalStateException("Method call not finished!");
2782 }
2783 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2784 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2785 return (new Client(prot)).recv_listPluginOperations();
2786 }
2787 }
2788
2789 public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2790 checkReady();
2791 performPluginOperation_call method_call = new performPluginOperation_call(projectName, pluginName, operationName, params, resultHandler, this, ___protocolFactory, ___transport);
2792 this.___currentMethod = method_call;
2793 ___manager.call(method_call);
2794 }
2795
2796 public static class performPluginOperation_call extends org.apache.thrift.async.TAsyncMethodCall {
2797 private String projectName;
2798 private String pluginName;
2799 private String operationName;
2800 private String params;
2801 public performPluginOperation_call(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2802 super(client, protocolFactory, transport, resultHandler, false);
2803 this.projectName = projectName;
2804 this.pluginName = pluginName;
2805 this.operationName = operationName;
2806 this.params = params;
2807 }
2808
2809 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2810 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("performPluginOperation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2811 performPluginOperation_args args = new performPluginOperation_args();
2812 args.setProjectName(projectName);
2813 args.setPluginName(pluginName);
2814 args.setOperationName(operationName);
2815 args.setParams(params);
2816 args.write(prot);
2817 prot.writeMessageEnd();
2818 }
2819
2820 public String getResult() throws CentralDogmaException, org.apache.thrift.TException {
2821 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2822 throw new IllegalStateException("Method call not finished!");
2823 }
2824 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2825 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2826 return (new Client(prot)).recv_performPluginOperation();
2827 }
2828 }
2829
2830 public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2831 checkReady();
2832 queryByNamedQuery_call method_call = new queryByNamedQuery_call(projectName, namedQuery, revision, resultHandler, this, ___protocolFactory, ___transport);
2833 this.___currentMethod = method_call;
2834 ___manager.call(method_call);
2835 }
2836
2837 public static class queryByNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall {
2838 private String projectName;
2839 private String namedQuery;
2840 private Revision revision;
2841 public queryByNamedQuery_call(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2842 super(client, protocolFactory, transport, resultHandler, false);
2843 this.projectName = projectName;
2844 this.namedQuery = namedQuery;
2845 this.revision = revision;
2846 }
2847
2848 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2849 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("queryByNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0));
2850 queryByNamedQuery_args args = new queryByNamedQuery_args();
2851 args.setProjectName(projectName);
2852 args.setNamedQuery(namedQuery);
2853 args.setRevision(revision);
2854 args.write(prot);
2855 prot.writeMessageEnd();
2856 }
2857
2858 public String getResult() throws CentralDogmaException, org.apache.thrift.TException {
2859 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2860 throw new IllegalStateException("Method call not finished!");
2861 }
2862 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2863 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2864 return (new Client(prot)).recv_queryByNamedQuery();
2865 }
2866 }
2867
2868 public void listSubscribers(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
2869 checkReady();
2870 listSubscribers_call method_call = new listSubscribers_call(projectName, repositoryName, path, resultHandler, this, ___protocolFactory, ___transport);
2871 this.___currentMethod = method_call;
2872 ___manager.call(method_call);
2873 }
2874
2875 public static class listSubscribers_call extends org.apache.thrift.async.TAsyncMethodCall {
2876 private String projectName;
2877 private String repositoryName;
2878 private String path;
2879 public listSubscribers_call(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2880 super(client, protocolFactory, transport, resultHandler, false);
2881 this.projectName = projectName;
2882 this.repositoryName = repositoryName;
2883 this.path = path;
2884 }
2885
2886 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2887 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSubscribers", org.apache.thrift.protocol.TMessageType.CALL, 0));
2888 listSubscribers_args args = new listSubscribers_args();
2889 args.setProjectName(projectName);
2890 args.setRepositoryName(repositoryName);
2891 args.setPath(path);
2892 args.write(prot);
2893 prot.writeMessageEnd();
2894 }
2895
2896 public List<Subscriber> getResult() throws CentralDogmaException, org.apache.thrift.TException {
2897 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2898 throw new IllegalStateException("Method call not finished!");
2899 }
2900 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2901 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2902 return (new Client(prot)).recv_listSubscribers();
2903 }
2904 }
2905
2906 }
2907
2908 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
2909 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2910 public Processor(I iface) {
2911 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2912 }
2913
2914 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
2915 super(iface, getProcessMap(processMap));
2916 }
2917
2918 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
2919 processMap.put("createProject", new createProject());
2920 processMap.put("removeProject", new removeProject());
2921 processMap.put("purgeProject", new purgeProject());
2922 processMap.put("unremoveProject", new unremoveProject());
2923 processMap.put("listProjects", new listProjects());
2924 processMap.put("listRemovedProjects", new listRemovedProjects());
2925 processMap.put("createRepository", new createRepository());
2926 processMap.put("removeRepository", new removeRepository());
2927 processMap.put("purgeRepository", new purgeRepository());
2928 processMap.put("unremoveRepository", new unremoveRepository());
2929 processMap.put("listRepositories", new listRepositories());
2930 processMap.put("listRemovedRepositories", new listRemovedRepositories());
2931 processMap.put("normalizeRevision", new normalizeRevision());
2932 processMap.put("listFiles", new listFiles());
2933 processMap.put("getFiles", new getFiles());
2934 processMap.put("getHistory", new getHistory());
2935 processMap.put("getDiffs", new getDiffs());
2936 processMap.put("getPreviewDiffs", new getPreviewDiffs());
2937 processMap.put("push", new push());
2938 processMap.put("getFile", new getFile());
2939 processMap.put("diffFile", new diffFile());
2940 processMap.put("mergeFiles", new mergeFiles());
2941 processMap.put("watchRepository", new watchRepository());
2942 processMap.put("watchFile", new watchFile());
2943 processMap.put("getSchema", new getSchema());
2944 processMap.put("saveSchema", new saveSchema());
2945 processMap.put("getNamedQuery", new getNamedQuery());
2946 processMap.put("saveNamedQuery", new saveNamedQuery());
2947 processMap.put("removeNamedQuery", new removeNamedQuery());
2948 processMap.put("listNamedQueries", new listNamedQueries());
2949 processMap.put("getPlugin", new getPlugin());
2950 processMap.put("savePlugin", new savePlugin());
2951 processMap.put("removePlugin", new removePlugin());
2952 processMap.put("listPlugins", new listPlugins());
2953 processMap.put("listPluginOperations", new listPluginOperations());
2954 processMap.put("performPluginOperation", new performPluginOperation());
2955 processMap.put("queryByNamedQuery", new queryByNamedQuery());
2956 processMap.put("listSubscribers", new listSubscribers());
2957 return processMap;
2958 }
2959
2960 public static class createProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createProject_args> {
2961 public createProject() {
2962 super("createProject");
2963 }
2964
2965 public createProject_args getEmptyArgsInstance() {
2966 return new createProject_args();
2967 }
2968
2969 protected boolean isOneway() {
2970 return false;
2971 }
2972
2973 public createProject_result getResult(I iface, createProject_args args) throws org.apache.thrift.TException {
2974 createProject_result result = new createProject_result();
2975 try {
2976 iface.createProject(args.name);
2977 } catch (CentralDogmaException e) {
2978 result.e = e;
2979 }
2980 return result;
2981 }
2982 }
2983
2984 public static class removeProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeProject_args> {
2985 public removeProject() {
2986 super("removeProject");
2987 }
2988
2989 public removeProject_args getEmptyArgsInstance() {
2990 return new removeProject_args();
2991 }
2992
2993 protected boolean isOneway() {
2994 return false;
2995 }
2996
2997 public removeProject_result getResult(I iface, removeProject_args args) throws org.apache.thrift.TException {
2998 removeProject_result result = new removeProject_result();
2999 try {
3000 iface.removeProject(args.name);
3001 } catch (CentralDogmaException e) {
3002 result.e = e;
3003 }
3004 return result;
3005 }
3006 }
3007
3008 public static class purgeProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, purgeProject_args> {
3009 public purgeProject() {
3010 super("purgeProject");
3011 }
3012
3013 public purgeProject_args getEmptyArgsInstance() {
3014 return new purgeProject_args();
3015 }
3016
3017 protected boolean isOneway() {
3018 return false;
3019 }
3020
3021 public purgeProject_result getResult(I iface, purgeProject_args args) throws org.apache.thrift.TException {
3022 purgeProject_result result = new purgeProject_result();
3023 try {
3024 iface.purgeProject(args.name);
3025 } catch (CentralDogmaException e) {
3026 result.e = e;
3027 }
3028 return result;
3029 }
3030 }
3031
3032 public static class unremoveProject<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unremoveProject_args> {
3033 public unremoveProject() {
3034 super("unremoveProject");
3035 }
3036
3037 public unremoveProject_args getEmptyArgsInstance() {
3038 return new unremoveProject_args();
3039 }
3040
3041 protected boolean isOneway() {
3042 return false;
3043 }
3044
3045 public unremoveProject_result getResult(I iface, unremoveProject_args args) throws org.apache.thrift.TException {
3046 unremoveProject_result result = new unremoveProject_result();
3047 try {
3048 iface.unremoveProject(args.name);
3049 } catch (CentralDogmaException e) {
3050 result.e = e;
3051 }
3052 return result;
3053 }
3054 }
3055
3056 public static class listProjects<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listProjects_args> {
3057 public listProjects() {
3058 super("listProjects");
3059 }
3060
3061 public listProjects_args getEmptyArgsInstance() {
3062 return new listProjects_args();
3063 }
3064
3065 protected boolean isOneway() {
3066 return false;
3067 }
3068
3069 public listProjects_result getResult(I iface, listProjects_args args) throws org.apache.thrift.TException {
3070 listProjects_result result = new listProjects_result();
3071 try {
3072 result.success = iface.listProjects();
3073 } catch (CentralDogmaException e) {
3074 result.e = e;
3075 }
3076 return result;
3077 }
3078 }
3079
3080 public static class listRemovedProjects<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRemovedProjects_args> {
3081 public listRemovedProjects() {
3082 super("listRemovedProjects");
3083 }
3084
3085 public listRemovedProjects_args getEmptyArgsInstance() {
3086 return new listRemovedProjects_args();
3087 }
3088
3089 protected boolean isOneway() {
3090 return false;
3091 }
3092
3093 public listRemovedProjects_result getResult(I iface, listRemovedProjects_args args) throws org.apache.thrift.TException {
3094 listRemovedProjects_result result = new listRemovedProjects_result();
3095 try {
3096 result.success = iface.listRemovedProjects();
3097 } catch (CentralDogmaException e) {
3098 result.e = e;
3099 }
3100 return result;
3101 }
3102 }
3103
3104 public static class createRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRepository_args> {
3105 public createRepository() {
3106 super("createRepository");
3107 }
3108
3109 public createRepository_args getEmptyArgsInstance() {
3110 return new createRepository_args();
3111 }
3112
3113 protected boolean isOneway() {
3114 return false;
3115 }
3116
3117 public createRepository_result getResult(I iface, createRepository_args args) throws org.apache.thrift.TException {
3118 createRepository_result result = new createRepository_result();
3119 try {
3120 iface.createRepository(args.projectName, args.repositoryName);
3121 } catch (CentralDogmaException e) {
3122 result.e = e;
3123 }
3124 return result;
3125 }
3126 }
3127
3128 public static class removeRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeRepository_args> {
3129 public removeRepository() {
3130 super("removeRepository");
3131 }
3132
3133 public removeRepository_args getEmptyArgsInstance() {
3134 return new removeRepository_args();
3135 }
3136
3137 protected boolean isOneway() {
3138 return false;
3139 }
3140
3141 public removeRepository_result getResult(I iface, removeRepository_args args) throws org.apache.thrift.TException {
3142 removeRepository_result result = new removeRepository_result();
3143 try {
3144 iface.removeRepository(args.projectName, args.repositoryName);
3145 } catch (CentralDogmaException e) {
3146 result.e = e;
3147 }
3148 return result;
3149 }
3150 }
3151
3152 public static class purgeRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, purgeRepository_args> {
3153 public purgeRepository() {
3154 super("purgeRepository");
3155 }
3156
3157 public purgeRepository_args getEmptyArgsInstance() {
3158 return new purgeRepository_args();
3159 }
3160
3161 protected boolean isOneway() {
3162 return false;
3163 }
3164
3165 public purgeRepository_result getResult(I iface, purgeRepository_args args) throws org.apache.thrift.TException {
3166 purgeRepository_result result = new purgeRepository_result();
3167 try {
3168 iface.purgeRepository(args.projectName, args.repositoryName);
3169 } catch (CentralDogmaException e) {
3170 result.e = e;
3171 }
3172 return result;
3173 }
3174 }
3175
3176 public static class unremoveRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unremoveRepository_args> {
3177 public unremoveRepository() {
3178 super("unremoveRepository");
3179 }
3180
3181 public unremoveRepository_args getEmptyArgsInstance() {
3182 return new unremoveRepository_args();
3183 }
3184
3185 protected boolean isOneway() {
3186 return false;
3187 }
3188
3189 public unremoveRepository_result getResult(I iface, unremoveRepository_args args) throws org.apache.thrift.TException {
3190 unremoveRepository_result result = new unremoveRepository_result();
3191 try {
3192 iface.unremoveRepository(args.projectName, args.repositoryName);
3193 } catch (CentralDogmaException e) {
3194 result.e = e;
3195 }
3196 return result;
3197 }
3198 }
3199
3200 public static class listRepositories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRepositories_args> {
3201 public listRepositories() {
3202 super("listRepositories");
3203 }
3204
3205 public listRepositories_args getEmptyArgsInstance() {
3206 return new listRepositories_args();
3207 }
3208
3209 protected boolean isOneway() {
3210 return false;
3211 }
3212
3213 public listRepositories_result getResult(I iface, listRepositories_args args) throws org.apache.thrift.TException {
3214 listRepositories_result result = new listRepositories_result();
3215 try {
3216 result.success = iface.listRepositories(args.projectName);
3217 } catch (CentralDogmaException e) {
3218 result.e = e;
3219 }
3220 return result;
3221 }
3222 }
3223
3224 public static class listRemovedRepositories<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listRemovedRepositories_args> {
3225 public listRemovedRepositories() {
3226 super("listRemovedRepositories");
3227 }
3228
3229 public listRemovedRepositories_args getEmptyArgsInstance() {
3230 return new listRemovedRepositories_args();
3231 }
3232
3233 protected boolean isOneway() {
3234 return false;
3235 }
3236
3237 public listRemovedRepositories_result getResult(I iface, listRemovedRepositories_args args) throws org.apache.thrift.TException {
3238 listRemovedRepositories_result result = new listRemovedRepositories_result();
3239 try {
3240 result.success = iface.listRemovedRepositories(args.projectName);
3241 } catch (CentralDogmaException e) {
3242 result.e = e;
3243 }
3244 return result;
3245 }
3246 }
3247
3248 public static class normalizeRevision<I extends Iface> extends org.apache.thrift.ProcessFunction<I, normalizeRevision_args> {
3249 public normalizeRevision() {
3250 super("normalizeRevision");
3251 }
3252
3253 public normalizeRevision_args getEmptyArgsInstance() {
3254 return new normalizeRevision_args();
3255 }
3256
3257 protected boolean isOneway() {
3258 return false;
3259 }
3260
3261 public normalizeRevision_result getResult(I iface, normalizeRevision_args args) throws org.apache.thrift.TException {
3262 normalizeRevision_result result = new normalizeRevision_result();
3263 try {
3264 result.success = iface.normalizeRevision(args.projectName, args.repositoryName, args.revision);
3265 } catch (CentralDogmaException e) {
3266 result.e = e;
3267 }
3268 return result;
3269 }
3270 }
3271
3272 public static class listFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listFiles_args> {
3273 public listFiles() {
3274 super("listFiles");
3275 }
3276
3277 public listFiles_args getEmptyArgsInstance() {
3278 return new listFiles_args();
3279 }
3280
3281 protected boolean isOneway() {
3282 return false;
3283 }
3284
3285 public listFiles_result getResult(I iface, listFiles_args args) throws org.apache.thrift.TException {
3286 listFiles_result result = new listFiles_result();
3287 try {
3288 result.success = iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern);
3289 } catch (CentralDogmaException e) {
3290 result.e = e;
3291 }
3292 return result;
3293 }
3294 }
3295
3296 public static class getFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFiles_args> {
3297 public getFiles() {
3298 super("getFiles");
3299 }
3300
3301 public getFiles_args getEmptyArgsInstance() {
3302 return new getFiles_args();
3303 }
3304
3305 protected boolean isOneway() {
3306 return false;
3307 }
3308
3309 public getFiles_result getResult(I iface, getFiles_args args) throws org.apache.thrift.TException {
3310 getFiles_result result = new getFiles_result();
3311 try {
3312 result.success = iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern);
3313 } catch (CentralDogmaException e) {
3314 result.e = e;
3315 }
3316 return result;
3317 }
3318 }
3319
3320 public static class getHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistory_args> {
3321 public getHistory() {
3322 super("getHistory");
3323 }
3324
3325 public getHistory_args getEmptyArgsInstance() {
3326 return new getHistory_args();
3327 }
3328
3329 protected boolean isOneway() {
3330 return false;
3331 }
3332
3333 public getHistory_result getResult(I iface, getHistory_args args) throws org.apache.thrift.TException {
3334 getHistory_result result = new getHistory_result();
3335 try {
3336 result.success = iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern);
3337 } catch (CentralDogmaException e) {
3338 result.e = e;
3339 }
3340 return result;
3341 }
3342 }
3343
3344 public static class getDiffs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDiffs_args> {
3345 public getDiffs() {
3346 super("getDiffs");
3347 }
3348
3349 public getDiffs_args getEmptyArgsInstance() {
3350 return new getDiffs_args();
3351 }
3352
3353 protected boolean isOneway() {
3354 return false;
3355 }
3356
3357 public getDiffs_result getResult(I iface, getDiffs_args args) throws org.apache.thrift.TException {
3358 getDiffs_result result = new getDiffs_result();
3359 try {
3360 result.success = iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern);
3361 } catch (CentralDogmaException e) {
3362 result.e = e;
3363 }
3364 return result;
3365 }
3366 }
3367
3368 public static class getPreviewDiffs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPreviewDiffs_args> {
3369 public getPreviewDiffs() {
3370 super("getPreviewDiffs");
3371 }
3372
3373 public getPreviewDiffs_args getEmptyArgsInstance() {
3374 return new getPreviewDiffs_args();
3375 }
3376
3377 protected boolean isOneway() {
3378 return false;
3379 }
3380
3381 public getPreviewDiffs_result getResult(I iface, getPreviewDiffs_args args) throws org.apache.thrift.TException {
3382 getPreviewDiffs_result result = new getPreviewDiffs_result();
3383 try {
3384 result.success = iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes);
3385 } catch (CentralDogmaException e) {
3386 result.e = e;
3387 }
3388 return result;
3389 }
3390 }
3391
3392 public static class push<I extends Iface> extends org.apache.thrift.ProcessFunction<I, push_args> {
3393 public push() {
3394 super("push");
3395 }
3396
3397 public push_args getEmptyArgsInstance() {
3398 return new push_args();
3399 }
3400
3401 protected boolean isOneway() {
3402 return false;
3403 }
3404
3405 public push_result getResult(I iface, push_args args) throws org.apache.thrift.TException {
3406 push_result result = new push_result();
3407 try {
3408 result.success = iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes);
3409 } catch (CentralDogmaException e) {
3410 result.e = e;
3411 }
3412 return result;
3413 }
3414 }
3415
3416 public static class getFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFile_args> {
3417 public getFile() {
3418 super("getFile");
3419 }
3420
3421 public getFile_args getEmptyArgsInstance() {
3422 return new getFile_args();
3423 }
3424
3425 protected boolean isOneway() {
3426 return false;
3427 }
3428
3429 public getFile_result getResult(I iface, getFile_args args) throws org.apache.thrift.TException {
3430 getFile_result result = new getFile_result();
3431 try {
3432 result.success = iface.getFile(args.projectName, args.repositoryName, args.revision, args.query);
3433 } catch (CentralDogmaException e) {
3434 result.e = e;
3435 }
3436 return result;
3437 }
3438 }
3439
3440 public static class diffFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffFile_args> {
3441 public diffFile() {
3442 super("diffFile");
3443 }
3444
3445 public diffFile_args getEmptyArgsInstance() {
3446 return new diffFile_args();
3447 }
3448
3449 protected boolean isOneway() {
3450 return false;
3451 }
3452
3453 public diffFile_result getResult(I iface, diffFile_args args) throws org.apache.thrift.TException {
3454 diffFile_result result = new diffFile_result();
3455 try {
3456 result.success = iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query);
3457 } catch (CentralDogmaException e) {
3458 result.e = e;
3459 }
3460 return result;
3461 }
3462 }
3463
3464 public static class mergeFiles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeFiles_args> {
3465 public mergeFiles() {
3466 super("mergeFiles");
3467 }
3468
3469 public mergeFiles_args getEmptyArgsInstance() {
3470 return new mergeFiles_args();
3471 }
3472
3473 protected boolean isOneway() {
3474 return false;
3475 }
3476
3477 public mergeFiles_result getResult(I iface, mergeFiles_args args) throws org.apache.thrift.TException {
3478 mergeFiles_result result = new mergeFiles_result();
3479 try {
3480 result.success = iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery);
3481 } catch (CentralDogmaException e) {
3482 result.e = e;
3483 }
3484 return result;
3485 }
3486 }
3487
3488 public static class watchRepository<I extends Iface> extends org.apache.thrift.ProcessFunction<I, watchRepository_args> {
3489 public watchRepository() {
3490 super("watchRepository");
3491 }
3492
3493 public watchRepository_args getEmptyArgsInstance() {
3494 return new watchRepository_args();
3495 }
3496
3497 protected boolean isOneway() {
3498 return false;
3499 }
3500
3501 public watchRepository_result getResult(I iface, watchRepository_args args) throws org.apache.thrift.TException {
3502 watchRepository_result result = new watchRepository_result();
3503 try {
3504 result.success = iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis);
3505 } catch (CentralDogmaException e) {
3506 result.e = e;
3507 }
3508 return result;
3509 }
3510 }
3511
3512 public static class watchFile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, watchFile_args> {
3513 public watchFile() {
3514 super("watchFile");
3515 }
3516
3517 public watchFile_args getEmptyArgsInstance() {
3518 return new watchFile_args();
3519 }
3520
3521 protected boolean isOneway() {
3522 return false;
3523 }
3524
3525 public watchFile_result getResult(I iface, watchFile_args args) throws org.apache.thrift.TException {
3526 watchFile_result result = new watchFile_result();
3527 try {
3528 result.success = iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis);
3529 } catch (CentralDogmaException e) {
3530 result.e = e;
3531 }
3532 return result;
3533 }
3534 }
3535
3536 public static class getSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSchema_args> {
3537 public getSchema() {
3538 super("getSchema");
3539 }
3540
3541 public getSchema_args getEmptyArgsInstance() {
3542 return new getSchema_args();
3543 }
3544
3545 protected boolean isOneway() {
3546 return false;
3547 }
3548
3549 public getSchema_result getResult(I iface, getSchema_args args) throws org.apache.thrift.TException {
3550 getSchema_result result = new getSchema_result();
3551 try {
3552 result.success = iface.getSchema(args.projectName);
3553 } catch (CentralDogmaException e) {
3554 result.e = e;
3555 }
3556 return result;
3557 }
3558 }
3559
3560 public static class saveSchema<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveSchema_args> {
3561 public saveSchema() {
3562 super("saveSchema");
3563 }
3564
3565 public saveSchema_args getEmptyArgsInstance() {
3566 return new saveSchema_args();
3567 }
3568
3569 protected boolean isOneway() {
3570 return false;
3571 }
3572
3573 public saveSchema_result getResult(I iface, saveSchema_args args) throws org.apache.thrift.TException {
3574 saveSchema_result result = new saveSchema_result();
3575 try {
3576 iface.saveSchema(args.projectName, args.schema);
3577 } catch (CentralDogmaException e) {
3578 result.e = e;
3579 }
3580 return result;
3581 }
3582 }
3583
3584 public static class getNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNamedQuery_args> {
3585 public getNamedQuery() {
3586 super("getNamedQuery");
3587 }
3588
3589 public getNamedQuery_args getEmptyArgsInstance() {
3590 return new getNamedQuery_args();
3591 }
3592
3593 protected boolean isOneway() {
3594 return false;
3595 }
3596
3597 public getNamedQuery_result getResult(I iface, getNamedQuery_args args) throws org.apache.thrift.TException {
3598 getNamedQuery_result result = new getNamedQuery_result();
3599 try {
3600 result.success = iface.getNamedQuery(args.projectName, args.name);
3601 } catch (CentralDogmaException e) {
3602 result.e = e;
3603 }
3604 return result;
3605 }
3606 }
3607
3608 public static class saveNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveNamedQuery_args> {
3609 public saveNamedQuery() {
3610 super("saveNamedQuery");
3611 }
3612
3613 public saveNamedQuery_args getEmptyArgsInstance() {
3614 return new saveNamedQuery_args();
3615 }
3616
3617 protected boolean isOneway() {
3618 return false;
3619 }
3620
3621 public saveNamedQuery_result getResult(I iface, saveNamedQuery_args args) throws org.apache.thrift.TException {
3622 saveNamedQuery_result result = new saveNamedQuery_result();
3623 try {
3624 iface.saveNamedQuery(args.projectName, args.namedQuery);
3625 } catch (CentralDogmaException e) {
3626 result.e = e;
3627 }
3628 return result;
3629 }
3630 }
3631
3632 public static class removeNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeNamedQuery_args> {
3633 public removeNamedQuery() {
3634 super("removeNamedQuery");
3635 }
3636
3637 public removeNamedQuery_args getEmptyArgsInstance() {
3638 return new removeNamedQuery_args();
3639 }
3640
3641 protected boolean isOneway() {
3642 return false;
3643 }
3644
3645 public removeNamedQuery_result getResult(I iface, removeNamedQuery_args args) throws org.apache.thrift.TException {
3646 removeNamedQuery_result result = new removeNamedQuery_result();
3647 try {
3648 iface.removeNamedQuery(args.projectName, args.name);
3649 } catch (CentralDogmaException e) {
3650 result.e = e;
3651 }
3652 return result;
3653 }
3654 }
3655
3656 public static class listNamedQueries<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listNamedQueries_args> {
3657 public listNamedQueries() {
3658 super("listNamedQueries");
3659 }
3660
3661 public listNamedQueries_args getEmptyArgsInstance() {
3662 return new listNamedQueries_args();
3663 }
3664
3665 protected boolean isOneway() {
3666 return false;
3667 }
3668
3669 public listNamedQueries_result getResult(I iface, listNamedQueries_args args) throws org.apache.thrift.TException {
3670 listNamedQueries_result result = new listNamedQueries_result();
3671 try {
3672 result.success = iface.listNamedQueries(args.projectName);
3673 } catch (CentralDogmaException e) {
3674 result.e = e;
3675 }
3676 return result;
3677 }
3678 }
3679
3680 public static class getPlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPlugin_args> {
3681 public getPlugin() {
3682 super("getPlugin");
3683 }
3684
3685 public getPlugin_args getEmptyArgsInstance() {
3686 return new getPlugin_args();
3687 }
3688
3689 protected boolean isOneway() {
3690 return false;
3691 }
3692
3693 public getPlugin_result getResult(I iface, getPlugin_args args) throws org.apache.thrift.TException {
3694 getPlugin_result result = new getPlugin_result();
3695 try {
3696 result.success = iface.getPlugin(args.projectName, args.pluginName);
3697 } catch (CentralDogmaException e) {
3698 result.e = e;
3699 }
3700 return result;
3701 }
3702 }
3703
3704 public static class savePlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, savePlugin_args> {
3705 public savePlugin() {
3706 super("savePlugin");
3707 }
3708
3709 public savePlugin_args getEmptyArgsInstance() {
3710 return new savePlugin_args();
3711 }
3712
3713 protected boolean isOneway() {
3714 return false;
3715 }
3716
3717 public savePlugin_result getResult(I iface, savePlugin_args args) throws org.apache.thrift.TException {
3718 savePlugin_result result = new savePlugin_result();
3719 try {
3720 iface.savePlugin(args.projectName, args.plugin);
3721 } catch (CentralDogmaException e) {
3722 result.e = e;
3723 }
3724 return result;
3725 }
3726 }
3727
3728 public static class removePlugin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removePlugin_args> {
3729 public removePlugin() {
3730 super("removePlugin");
3731 }
3732
3733 public removePlugin_args getEmptyArgsInstance() {
3734 return new removePlugin_args();
3735 }
3736
3737 protected boolean isOneway() {
3738 return false;
3739 }
3740
3741 public removePlugin_result getResult(I iface, removePlugin_args args) throws org.apache.thrift.TException {
3742 removePlugin_result result = new removePlugin_result();
3743 try {
3744 iface.removePlugin(args.projectName, args.pluginName);
3745 } catch (CentralDogmaException e) {
3746 result.e = e;
3747 }
3748 return result;
3749 }
3750 }
3751
3752 public static class listPlugins<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listPlugins_args> {
3753 public listPlugins() {
3754 super("listPlugins");
3755 }
3756
3757 public listPlugins_args getEmptyArgsInstance() {
3758 return new listPlugins_args();
3759 }
3760
3761 protected boolean isOneway() {
3762 return false;
3763 }
3764
3765 public listPlugins_result getResult(I iface, listPlugins_args args) throws org.apache.thrift.TException {
3766 listPlugins_result result = new listPlugins_result();
3767 try {
3768 result.success = iface.listPlugins(args.projectName);
3769 } catch (CentralDogmaException e) {
3770 result.e = e;
3771 }
3772 return result;
3773 }
3774 }
3775
3776 public static class listPluginOperations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listPluginOperations_args> {
3777 public listPluginOperations() {
3778 super("listPluginOperations");
3779 }
3780
3781 public listPluginOperations_args getEmptyArgsInstance() {
3782 return new listPluginOperations_args();
3783 }
3784
3785 protected boolean isOneway() {
3786 return false;
3787 }
3788
3789 public listPluginOperations_result getResult(I iface, listPluginOperations_args args) throws org.apache.thrift.TException {
3790 listPluginOperations_result result = new listPluginOperations_result();
3791 try {
3792 result.success = iface.listPluginOperations(args.projectName);
3793 } catch (CentralDogmaException e) {
3794 result.e = e;
3795 }
3796 return result;
3797 }
3798 }
3799
3800 public static class performPluginOperation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, performPluginOperation_args> {
3801 public performPluginOperation() {
3802 super("performPluginOperation");
3803 }
3804
3805 public performPluginOperation_args getEmptyArgsInstance() {
3806 return new performPluginOperation_args();
3807 }
3808
3809 protected boolean isOneway() {
3810 return false;
3811 }
3812
3813 public performPluginOperation_result getResult(I iface, performPluginOperation_args args) throws org.apache.thrift.TException {
3814 performPluginOperation_result result = new performPluginOperation_result();
3815 try {
3816 result.success = iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params);
3817 } catch (CentralDogmaException e) {
3818 result.e = e;
3819 }
3820 return result;
3821 }
3822 }
3823
3824 public static class queryByNamedQuery<I extends Iface> extends org.apache.thrift.ProcessFunction<I, queryByNamedQuery_args> {
3825 public queryByNamedQuery() {
3826 super("queryByNamedQuery");
3827 }
3828
3829 public queryByNamedQuery_args getEmptyArgsInstance() {
3830 return new queryByNamedQuery_args();
3831 }
3832
3833 protected boolean isOneway() {
3834 return false;
3835 }
3836
3837 public queryByNamedQuery_result getResult(I iface, queryByNamedQuery_args args) throws org.apache.thrift.TException {
3838 queryByNamedQuery_result result = new queryByNamedQuery_result();
3839 try {
3840 result.success = iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision);
3841 } catch (CentralDogmaException e) {
3842 result.e = e;
3843 }
3844 return result;
3845 }
3846 }
3847
3848 public static class listSubscribers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSubscribers_args> {
3849 public listSubscribers() {
3850 super("listSubscribers");
3851 }
3852
3853 public listSubscribers_args getEmptyArgsInstance() {
3854 return new listSubscribers_args();
3855 }
3856
3857 protected boolean isOneway() {
3858 return false;
3859 }
3860
3861 public listSubscribers_result getResult(I iface, listSubscribers_args args) throws org.apache.thrift.TException {
3862 listSubscribers_result result = new listSubscribers_result();
3863 try {
3864 result.success = iface.listSubscribers(args.projectName, args.repositoryName, args.path);
3865 } catch (CentralDogmaException e) {
3866 result.e = e;
3867 }
3868 return result;
3869 }
3870 }
3871
3872 }
3873
3874 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
3875 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
3876 public AsyncProcessor(I iface) {
3877 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
3878 }
3879
3880 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
3881 super(iface, getProcessMap(processMap));
3882 }
3883
3884 private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
3885 processMap.put("createProject", new createProject());
3886 processMap.put("removeProject", new removeProject());
3887 processMap.put("purgeProject", new purgeProject());
3888 processMap.put("unremoveProject", new unremoveProject());
3889 processMap.put("listProjects", new listProjects());
3890 processMap.put("listRemovedProjects", new listRemovedProjects());
3891 processMap.put("createRepository", new createRepository());
3892 processMap.put("removeRepository", new removeRepository());
3893 processMap.put("purgeRepository", new purgeRepository());
3894 processMap.put("unremoveRepository", new unremoveRepository());
3895 processMap.put("listRepositories", new listRepositories());
3896 processMap.put("listRemovedRepositories", new listRemovedRepositories());
3897 processMap.put("normalizeRevision", new normalizeRevision());
3898 processMap.put("listFiles", new listFiles());
3899 processMap.put("getFiles", new getFiles());
3900 processMap.put("getHistory", new getHistory());
3901 processMap.put("getDiffs", new getDiffs());
3902 processMap.put("getPreviewDiffs", new getPreviewDiffs());
3903 processMap.put("push", new push());
3904 processMap.put("getFile", new getFile());
3905 processMap.put("diffFile", new diffFile());
3906 processMap.put("mergeFiles", new mergeFiles());
3907 processMap.put("watchRepository", new watchRepository());
3908 processMap.put("watchFile", new watchFile());
3909 processMap.put("getSchema", new getSchema());
3910 processMap.put("saveSchema", new saveSchema());
3911 processMap.put("getNamedQuery", new getNamedQuery());
3912 processMap.put("saveNamedQuery", new saveNamedQuery());
3913 processMap.put("removeNamedQuery", new removeNamedQuery());
3914 processMap.put("listNamedQueries", new listNamedQueries());
3915 processMap.put("getPlugin", new getPlugin());
3916 processMap.put("savePlugin", new savePlugin());
3917 processMap.put("removePlugin", new removePlugin());
3918 processMap.put("listPlugins", new listPlugins());
3919 processMap.put("listPluginOperations", new listPluginOperations());
3920 processMap.put("performPluginOperation", new performPluginOperation());
3921 processMap.put("queryByNamedQuery", new queryByNamedQuery());
3922 processMap.put("listSubscribers", new listSubscribers());
3923 return processMap;
3924 }
3925
3926 public static class createProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createProject_args, Void> {
3927 public createProject() {
3928 super("createProject");
3929 }
3930
3931 public createProject_args getEmptyArgsInstance() {
3932 return new createProject_args();
3933 }
3934
3935 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3936 final org.apache.thrift.AsyncProcessFunction fcall = this;
3937 return new AsyncMethodCallback<Void>() {
3938 public void onComplete(Void o) {
3939 createProject_result result = new createProject_result();
3940 try {
3941 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3942 return;
3943 } catch (Exception e) {
3944 LOGGER.error("Exception writing to internal frame buffer", e);
3945 }
3946 fb.close();
3947 }
3948 public void onError(Exception e) {
3949 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3950 org.apache.thrift.TBase msg;
3951 createProject_result result = new createProject_result();
3952 if (e instanceof CentralDogmaException) {
3953 result.e = (CentralDogmaException) e;
3954 result.setEIsSet(true);
3955 msg = result;
3956 }
3957 else
3958 {
3959 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3960 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3961 }
3962 try {
3963 fcall.sendResponse(fb,msg,msgType,seqid);
3964 return;
3965 } catch (Exception ex) {
3966 LOGGER.error("Exception writing to internal frame buffer", ex);
3967 }
3968 fb.close();
3969 }
3970 };
3971 }
3972
3973 protected boolean isOneway() {
3974 return false;
3975 }
3976
3977 public void start(I iface, createProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
3978 iface.createProject(args.name,resultHandler);
3979 }
3980 }
3981
3982 public static class removeProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeProject_args, Void> {
3983 public removeProject() {
3984 super("removeProject");
3985 }
3986
3987 public removeProject_args getEmptyArgsInstance() {
3988 return new removeProject_args();
3989 }
3990
3991 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3992 final org.apache.thrift.AsyncProcessFunction fcall = this;
3993 return new AsyncMethodCallback<Void>() {
3994 public void onComplete(Void o) {
3995 removeProject_result result = new removeProject_result();
3996 try {
3997 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3998 return;
3999 } catch (Exception e) {
4000 LOGGER.error("Exception writing to internal frame buffer", e);
4001 }
4002 fb.close();
4003 }
4004 public void onError(Exception e) {
4005 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4006 org.apache.thrift.TBase msg;
4007 removeProject_result result = new removeProject_result();
4008 if (e instanceof CentralDogmaException) {
4009 result.e = (CentralDogmaException) e;
4010 result.setEIsSet(true);
4011 msg = result;
4012 }
4013 else
4014 {
4015 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4016 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4017 }
4018 try {
4019 fcall.sendResponse(fb,msg,msgType,seqid);
4020 return;
4021 } catch (Exception ex) {
4022 LOGGER.error("Exception writing to internal frame buffer", ex);
4023 }
4024 fb.close();
4025 }
4026 };
4027 }
4028
4029 protected boolean isOneway() {
4030 return false;
4031 }
4032
4033 public void start(I iface, removeProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4034 iface.removeProject(args.name,resultHandler);
4035 }
4036 }
4037
4038 public static class purgeProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, purgeProject_args, Void> {
4039 public purgeProject() {
4040 super("purgeProject");
4041 }
4042
4043 public purgeProject_args getEmptyArgsInstance() {
4044 return new purgeProject_args();
4045 }
4046
4047 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4048 final org.apache.thrift.AsyncProcessFunction fcall = this;
4049 return new AsyncMethodCallback<Void>() {
4050 public void onComplete(Void o) {
4051 purgeProject_result result = new purgeProject_result();
4052 try {
4053 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4054 return;
4055 } catch (Exception e) {
4056 LOGGER.error("Exception writing to internal frame buffer", e);
4057 }
4058 fb.close();
4059 }
4060 public void onError(Exception e) {
4061 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4062 org.apache.thrift.TBase msg;
4063 purgeProject_result result = new purgeProject_result();
4064 if (e instanceof CentralDogmaException) {
4065 result.e = (CentralDogmaException) e;
4066 result.setEIsSet(true);
4067 msg = result;
4068 }
4069 else
4070 {
4071 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4072 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4073 }
4074 try {
4075 fcall.sendResponse(fb,msg,msgType,seqid);
4076 return;
4077 } catch (Exception ex) {
4078 LOGGER.error("Exception writing to internal frame buffer", ex);
4079 }
4080 fb.close();
4081 }
4082 };
4083 }
4084
4085 protected boolean isOneway() {
4086 return false;
4087 }
4088
4089 public void start(I iface, purgeProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4090 iface.purgeProject(args.name,resultHandler);
4091 }
4092 }
4093
4094 public static class unremoveProject<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unremoveProject_args, Void> {
4095 public unremoveProject() {
4096 super("unremoveProject");
4097 }
4098
4099 public unremoveProject_args getEmptyArgsInstance() {
4100 return new unremoveProject_args();
4101 }
4102
4103 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4104 final org.apache.thrift.AsyncProcessFunction fcall = this;
4105 return new AsyncMethodCallback<Void>() {
4106 public void onComplete(Void o) {
4107 unremoveProject_result result = new unremoveProject_result();
4108 try {
4109 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4110 return;
4111 } catch (Exception e) {
4112 LOGGER.error("Exception writing to internal frame buffer", e);
4113 }
4114 fb.close();
4115 }
4116 public void onError(Exception e) {
4117 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4118 org.apache.thrift.TBase msg;
4119 unremoveProject_result result = new unremoveProject_result();
4120 if (e instanceof CentralDogmaException) {
4121 result.e = (CentralDogmaException) e;
4122 result.setEIsSet(true);
4123 msg = result;
4124 }
4125 else
4126 {
4127 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4128 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4129 }
4130 try {
4131 fcall.sendResponse(fb,msg,msgType,seqid);
4132 return;
4133 } catch (Exception ex) {
4134 LOGGER.error("Exception writing to internal frame buffer", ex);
4135 }
4136 fb.close();
4137 }
4138 };
4139 }
4140
4141 protected boolean isOneway() {
4142 return false;
4143 }
4144
4145 public void start(I iface, unremoveProject_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4146 iface.unremoveProject(args.name,resultHandler);
4147 }
4148 }
4149
4150 public static class listProjects<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listProjects_args, List<Project>> {
4151 public listProjects() {
4152 super("listProjects");
4153 }
4154
4155 public listProjects_args getEmptyArgsInstance() {
4156 return new listProjects_args();
4157 }
4158
4159 public AsyncMethodCallback<List<Project>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4160 final org.apache.thrift.AsyncProcessFunction fcall = this;
4161 return new AsyncMethodCallback<List<Project>>() {
4162 public void onComplete(List<Project> o) {
4163 listProjects_result result = new listProjects_result();
4164 result.success = o;
4165 try {
4166 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4167 return;
4168 } catch (Exception e) {
4169 LOGGER.error("Exception writing to internal frame buffer", e);
4170 }
4171 fb.close();
4172 }
4173 public void onError(Exception e) {
4174 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4175 org.apache.thrift.TBase msg;
4176 listProjects_result result = new listProjects_result();
4177 if (e instanceof CentralDogmaException) {
4178 result.e = (CentralDogmaException) e;
4179 result.setEIsSet(true);
4180 msg = result;
4181 }
4182 else
4183 {
4184 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4185 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4186 }
4187 try {
4188 fcall.sendResponse(fb,msg,msgType,seqid);
4189 return;
4190 } catch (Exception ex) {
4191 LOGGER.error("Exception writing to internal frame buffer", ex);
4192 }
4193 fb.close();
4194 }
4195 };
4196 }
4197
4198 protected boolean isOneway() {
4199 return false;
4200 }
4201
4202 public void start(I iface, listProjects_args args, org.apache.thrift.async.AsyncMethodCallback<List<Project>> resultHandler) throws TException {
4203 iface.listProjects(resultHandler);
4204 }
4205 }
4206
4207 public static class listRemovedProjects<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRemovedProjects_args, Set<String>> {
4208 public listRemovedProjects() {
4209 super("listRemovedProjects");
4210 }
4211
4212 public listRemovedProjects_args getEmptyArgsInstance() {
4213 return new listRemovedProjects_args();
4214 }
4215
4216 public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4217 final org.apache.thrift.AsyncProcessFunction fcall = this;
4218 return new AsyncMethodCallback<Set<String>>() {
4219 public void onComplete(Set<String> o) {
4220 listRemovedProjects_result result = new listRemovedProjects_result();
4221 result.success = o;
4222 try {
4223 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4224 return;
4225 } catch (Exception e) {
4226 LOGGER.error("Exception writing to internal frame buffer", e);
4227 }
4228 fb.close();
4229 }
4230 public void onError(Exception e) {
4231 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4232 org.apache.thrift.TBase msg;
4233 listRemovedProjects_result result = new listRemovedProjects_result();
4234 if (e instanceof CentralDogmaException) {
4235 result.e = (CentralDogmaException) e;
4236 result.setEIsSet(true);
4237 msg = result;
4238 }
4239 else
4240 {
4241 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4242 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4243 }
4244 try {
4245 fcall.sendResponse(fb,msg,msgType,seqid);
4246 return;
4247 } catch (Exception ex) {
4248 LOGGER.error("Exception writing to internal frame buffer", ex);
4249 }
4250 fb.close();
4251 }
4252 };
4253 }
4254
4255 protected boolean isOneway() {
4256 return false;
4257 }
4258
4259 public void start(I iface, listRemovedProjects_args args, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler) throws TException {
4260 iface.listRemovedProjects(resultHandler);
4261 }
4262 }
4263
4264 public static class createRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createRepository_args, Void> {
4265 public createRepository() {
4266 super("createRepository");
4267 }
4268
4269 public createRepository_args getEmptyArgsInstance() {
4270 return new createRepository_args();
4271 }
4272
4273 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4274 final org.apache.thrift.AsyncProcessFunction fcall = this;
4275 return new AsyncMethodCallback<Void>() {
4276 public void onComplete(Void o) {
4277 createRepository_result result = new createRepository_result();
4278 try {
4279 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4280 return;
4281 } catch (Exception e) {
4282 LOGGER.error("Exception writing to internal frame buffer", e);
4283 }
4284 fb.close();
4285 }
4286 public void onError(Exception e) {
4287 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4288 org.apache.thrift.TBase msg;
4289 createRepository_result result = new createRepository_result();
4290 if (e instanceof CentralDogmaException) {
4291 result.e = (CentralDogmaException) e;
4292 result.setEIsSet(true);
4293 msg = result;
4294 }
4295 else
4296 {
4297 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4298 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4299 }
4300 try {
4301 fcall.sendResponse(fb,msg,msgType,seqid);
4302 return;
4303 } catch (Exception ex) {
4304 LOGGER.error("Exception writing to internal frame buffer", ex);
4305 }
4306 fb.close();
4307 }
4308 };
4309 }
4310
4311 protected boolean isOneway() {
4312 return false;
4313 }
4314
4315 public void start(I iface, createRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4316 iface.createRepository(args.projectName, args.repositoryName,resultHandler);
4317 }
4318 }
4319
4320 public static class removeRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeRepository_args, Void> {
4321 public removeRepository() {
4322 super("removeRepository");
4323 }
4324
4325 public removeRepository_args getEmptyArgsInstance() {
4326 return new removeRepository_args();
4327 }
4328
4329 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4330 final org.apache.thrift.AsyncProcessFunction fcall = this;
4331 return new AsyncMethodCallback<Void>() {
4332 public void onComplete(Void o) {
4333 removeRepository_result result = new removeRepository_result();
4334 try {
4335 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4336 return;
4337 } catch (Exception e) {
4338 LOGGER.error("Exception writing to internal frame buffer", e);
4339 }
4340 fb.close();
4341 }
4342 public void onError(Exception e) {
4343 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4344 org.apache.thrift.TBase msg;
4345 removeRepository_result result = new removeRepository_result();
4346 if (e instanceof CentralDogmaException) {
4347 result.e = (CentralDogmaException) e;
4348 result.setEIsSet(true);
4349 msg = result;
4350 }
4351 else
4352 {
4353 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4354 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4355 }
4356 try {
4357 fcall.sendResponse(fb,msg,msgType,seqid);
4358 return;
4359 } catch (Exception ex) {
4360 LOGGER.error("Exception writing to internal frame buffer", ex);
4361 }
4362 fb.close();
4363 }
4364 };
4365 }
4366
4367 protected boolean isOneway() {
4368 return false;
4369 }
4370
4371 public void start(I iface, removeRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4372 iface.removeRepository(args.projectName, args.repositoryName,resultHandler);
4373 }
4374 }
4375
4376 public static class purgeRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, purgeRepository_args, Void> {
4377 public purgeRepository() {
4378 super("purgeRepository");
4379 }
4380
4381 public purgeRepository_args getEmptyArgsInstance() {
4382 return new purgeRepository_args();
4383 }
4384
4385 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4386 final org.apache.thrift.AsyncProcessFunction fcall = this;
4387 return new AsyncMethodCallback<Void>() {
4388 public void onComplete(Void o) {
4389 purgeRepository_result result = new purgeRepository_result();
4390 try {
4391 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4392 return;
4393 } catch (Exception e) {
4394 LOGGER.error("Exception writing to internal frame buffer", e);
4395 }
4396 fb.close();
4397 }
4398 public void onError(Exception e) {
4399 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4400 org.apache.thrift.TBase msg;
4401 purgeRepository_result result = new purgeRepository_result();
4402 if (e instanceof CentralDogmaException) {
4403 result.e = (CentralDogmaException) e;
4404 result.setEIsSet(true);
4405 msg = result;
4406 }
4407 else
4408 {
4409 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4410 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4411 }
4412 try {
4413 fcall.sendResponse(fb,msg,msgType,seqid);
4414 return;
4415 } catch (Exception ex) {
4416 LOGGER.error("Exception writing to internal frame buffer", ex);
4417 }
4418 fb.close();
4419 }
4420 };
4421 }
4422
4423 protected boolean isOneway() {
4424 return false;
4425 }
4426
4427 public void start(I iface, purgeRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4428 iface.purgeRepository(args.projectName, args.repositoryName,resultHandler);
4429 }
4430 }
4431
4432 public static class unremoveRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unremoveRepository_args, Void> {
4433 public unremoveRepository() {
4434 super("unremoveRepository");
4435 }
4436
4437 public unremoveRepository_args getEmptyArgsInstance() {
4438 return new unremoveRepository_args();
4439 }
4440
4441 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4442 final org.apache.thrift.AsyncProcessFunction fcall = this;
4443 return new AsyncMethodCallback<Void>() {
4444 public void onComplete(Void o) {
4445 unremoveRepository_result result = new unremoveRepository_result();
4446 try {
4447 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4448 return;
4449 } catch (Exception e) {
4450 LOGGER.error("Exception writing to internal frame buffer", e);
4451 }
4452 fb.close();
4453 }
4454 public void onError(Exception e) {
4455 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4456 org.apache.thrift.TBase msg;
4457 unremoveRepository_result result = new unremoveRepository_result();
4458 if (e instanceof CentralDogmaException) {
4459 result.e = (CentralDogmaException) e;
4460 result.setEIsSet(true);
4461 msg = result;
4462 }
4463 else
4464 {
4465 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4466 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4467 }
4468 try {
4469 fcall.sendResponse(fb,msg,msgType,seqid);
4470 return;
4471 } catch (Exception ex) {
4472 LOGGER.error("Exception writing to internal frame buffer", ex);
4473 }
4474 fb.close();
4475 }
4476 };
4477 }
4478
4479 protected boolean isOneway() {
4480 return false;
4481 }
4482
4483 public void start(I iface, unremoveRepository_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
4484 iface.unremoveRepository(args.projectName, args.repositoryName,resultHandler);
4485 }
4486 }
4487
4488 public static class listRepositories<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRepositories_args, List<Repository>> {
4489 public listRepositories() {
4490 super("listRepositories");
4491 }
4492
4493 public listRepositories_args getEmptyArgsInstance() {
4494 return new listRepositories_args();
4495 }
4496
4497 public AsyncMethodCallback<List<Repository>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4498 final org.apache.thrift.AsyncProcessFunction fcall = this;
4499 return new AsyncMethodCallback<List<Repository>>() {
4500 public void onComplete(List<Repository> o) {
4501 listRepositories_result result = new listRepositories_result();
4502 result.success = o;
4503 try {
4504 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4505 return;
4506 } catch (Exception e) {
4507 LOGGER.error("Exception writing to internal frame buffer", e);
4508 }
4509 fb.close();
4510 }
4511 public void onError(Exception e) {
4512 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4513 org.apache.thrift.TBase msg;
4514 listRepositories_result result = new listRepositories_result();
4515 if (e instanceof CentralDogmaException) {
4516 result.e = (CentralDogmaException) e;
4517 result.setEIsSet(true);
4518 msg = result;
4519 }
4520 else
4521 {
4522 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4523 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4524 }
4525 try {
4526 fcall.sendResponse(fb,msg,msgType,seqid);
4527 return;
4528 } catch (Exception ex) {
4529 LOGGER.error("Exception writing to internal frame buffer", ex);
4530 }
4531 fb.close();
4532 }
4533 };
4534 }
4535
4536 protected boolean isOneway() {
4537 return false;
4538 }
4539
4540 public void start(I iface, listRepositories_args args, org.apache.thrift.async.AsyncMethodCallback<List<Repository>> resultHandler) throws TException {
4541 iface.listRepositories(args.projectName,resultHandler);
4542 }
4543 }
4544
4545 public static class listRemovedRepositories<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listRemovedRepositories_args, Set<String>> {
4546 public listRemovedRepositories() {
4547 super("listRemovedRepositories");
4548 }
4549
4550 public listRemovedRepositories_args getEmptyArgsInstance() {
4551 return new listRemovedRepositories_args();
4552 }
4553
4554 public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4555 final org.apache.thrift.AsyncProcessFunction fcall = this;
4556 return new AsyncMethodCallback<Set<String>>() {
4557 public void onComplete(Set<String> o) {
4558 listRemovedRepositories_result result = new listRemovedRepositories_result();
4559 result.success = o;
4560 try {
4561 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4562 return;
4563 } catch (Exception e) {
4564 LOGGER.error("Exception writing to internal frame buffer", e);
4565 }
4566 fb.close();
4567 }
4568 public void onError(Exception e) {
4569 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4570 org.apache.thrift.TBase msg;
4571 listRemovedRepositories_result result = new listRemovedRepositories_result();
4572 if (e instanceof CentralDogmaException) {
4573 result.e = (CentralDogmaException) e;
4574 result.setEIsSet(true);
4575 msg = result;
4576 }
4577 else
4578 {
4579 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4580 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4581 }
4582 try {
4583 fcall.sendResponse(fb,msg,msgType,seqid);
4584 return;
4585 } catch (Exception ex) {
4586 LOGGER.error("Exception writing to internal frame buffer", ex);
4587 }
4588 fb.close();
4589 }
4590 };
4591 }
4592
4593 protected boolean isOneway() {
4594 return false;
4595 }
4596
4597 public void start(I iface, listRemovedRepositories_args args, org.apache.thrift.async.AsyncMethodCallback<Set<String>> resultHandler) throws TException {
4598 iface.listRemovedRepositories(args.projectName,resultHandler);
4599 }
4600 }
4601
4602 public static class normalizeRevision<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, normalizeRevision_args, Revision> {
4603 public normalizeRevision() {
4604 super("normalizeRevision");
4605 }
4606
4607 public normalizeRevision_args getEmptyArgsInstance() {
4608 return new normalizeRevision_args();
4609 }
4610
4611 public AsyncMethodCallback<Revision> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4612 final org.apache.thrift.AsyncProcessFunction fcall = this;
4613 return new AsyncMethodCallback<Revision>() {
4614 public void onComplete(Revision o) {
4615 normalizeRevision_result result = new normalizeRevision_result();
4616 result.success = o;
4617 try {
4618 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4619 return;
4620 } catch (Exception e) {
4621 LOGGER.error("Exception writing to internal frame buffer", e);
4622 }
4623 fb.close();
4624 }
4625 public void onError(Exception e) {
4626 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4627 org.apache.thrift.TBase msg;
4628 normalizeRevision_result result = new normalizeRevision_result();
4629 if (e instanceof CentralDogmaException) {
4630 result.e = (CentralDogmaException) e;
4631 result.setEIsSet(true);
4632 msg = result;
4633 }
4634 else
4635 {
4636 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4637 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4638 }
4639 try {
4640 fcall.sendResponse(fb,msg,msgType,seqid);
4641 return;
4642 } catch (Exception ex) {
4643 LOGGER.error("Exception writing to internal frame buffer", ex);
4644 }
4645 fb.close();
4646 }
4647 };
4648 }
4649
4650 protected boolean isOneway() {
4651 return false;
4652 }
4653
4654 public void start(I iface, normalizeRevision_args args, org.apache.thrift.async.AsyncMethodCallback<Revision> resultHandler) throws TException {
4655 iface.normalizeRevision(args.projectName, args.repositoryName, args.revision,resultHandler);
4656 }
4657 }
4658
4659 public static class listFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listFiles_args, List<Entry>> {
4660 public listFiles() {
4661 super("listFiles");
4662 }
4663
4664 public listFiles_args getEmptyArgsInstance() {
4665 return new listFiles_args();
4666 }
4667
4668 public AsyncMethodCallback<List<Entry>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4669 final org.apache.thrift.AsyncProcessFunction fcall = this;
4670 return new AsyncMethodCallback<List<Entry>>() {
4671 public void onComplete(List<Entry> o) {
4672 listFiles_result result = new listFiles_result();
4673 result.success = o;
4674 try {
4675 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4676 return;
4677 } catch (Exception e) {
4678 LOGGER.error("Exception writing to internal frame buffer", e);
4679 }
4680 fb.close();
4681 }
4682 public void onError(Exception e) {
4683 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4684 org.apache.thrift.TBase msg;
4685 listFiles_result result = new listFiles_result();
4686 if (e instanceof CentralDogmaException) {
4687 result.e = (CentralDogmaException) e;
4688 result.setEIsSet(true);
4689 msg = result;
4690 }
4691 else
4692 {
4693 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4694 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4695 }
4696 try {
4697 fcall.sendResponse(fb,msg,msgType,seqid);
4698 return;
4699 } catch (Exception ex) {
4700 LOGGER.error("Exception writing to internal frame buffer", ex);
4701 }
4702 fb.close();
4703 }
4704 };
4705 }
4706
4707 protected boolean isOneway() {
4708 return false;
4709 }
4710
4711 public void start(I iface, listFiles_args args, org.apache.thrift.async.AsyncMethodCallback<List<Entry>> resultHandler) throws TException {
4712 iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler);
4713 }
4714 }
4715
4716 public static class getFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFiles_args, List<Entry>> {
4717 public getFiles() {
4718 super("getFiles");
4719 }
4720
4721 public getFiles_args getEmptyArgsInstance() {
4722 return new getFiles_args();
4723 }
4724
4725 public AsyncMethodCallback<List<Entry>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4726 final org.apache.thrift.AsyncProcessFunction fcall = this;
4727 return new AsyncMethodCallback<List<Entry>>() {
4728 public void onComplete(List<Entry> o) {
4729 getFiles_result result = new getFiles_result();
4730 result.success = o;
4731 try {
4732 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4733 return;
4734 } catch (Exception e) {
4735 LOGGER.error("Exception writing to internal frame buffer", e);
4736 }
4737 fb.close();
4738 }
4739 public void onError(Exception e) {
4740 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4741 org.apache.thrift.TBase msg;
4742 getFiles_result result = new getFiles_result();
4743 if (e instanceof CentralDogmaException) {
4744 result.e = (CentralDogmaException) e;
4745 result.setEIsSet(true);
4746 msg = result;
4747 }
4748 else
4749 {
4750 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4751 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4752 }
4753 try {
4754 fcall.sendResponse(fb,msg,msgType,seqid);
4755 return;
4756 } catch (Exception ex) {
4757 LOGGER.error("Exception writing to internal frame buffer", ex);
4758 }
4759 fb.close();
4760 }
4761 };
4762 }
4763
4764 protected boolean isOneway() {
4765 return false;
4766 }
4767
4768 public void start(I iface, getFiles_args args, org.apache.thrift.async.AsyncMethodCallback<List<Entry>> resultHandler) throws TException {
4769 iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler);
4770 }
4771 }
4772
4773 public static class getHistory<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getHistory_args, List<Commit>> {
4774 public getHistory() {
4775 super("getHistory");
4776 }
4777
4778 public getHistory_args getEmptyArgsInstance() {
4779 return new getHistory_args();
4780 }
4781
4782 public AsyncMethodCallback<List<Commit>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4783 final org.apache.thrift.AsyncProcessFunction fcall = this;
4784 return new AsyncMethodCallback<List<Commit>>() {
4785 public void onComplete(List<Commit> o) {
4786 getHistory_result result = new getHistory_result();
4787 result.success = o;
4788 try {
4789 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4790 return;
4791 } catch (Exception e) {
4792 LOGGER.error("Exception writing to internal frame buffer", e);
4793 }
4794 fb.close();
4795 }
4796 public void onError(Exception e) {
4797 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4798 org.apache.thrift.TBase msg;
4799 getHistory_result result = new getHistory_result();
4800 if (e instanceof CentralDogmaException) {
4801 result.e = (CentralDogmaException) e;
4802 result.setEIsSet(true);
4803 msg = result;
4804 }
4805 else
4806 {
4807 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4808 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4809 }
4810 try {
4811 fcall.sendResponse(fb,msg,msgType,seqid);
4812 return;
4813 } catch (Exception ex) {
4814 LOGGER.error("Exception writing to internal frame buffer", ex);
4815 }
4816 fb.close();
4817 }
4818 };
4819 }
4820
4821 protected boolean isOneway() {
4822 return false;
4823 }
4824
4825 public void start(I iface, getHistory_args args, org.apache.thrift.async.AsyncMethodCallback<List<Commit>> resultHandler) throws TException {
4826 iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler);
4827 }
4828 }
4829
4830 public static class getDiffs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getDiffs_args, List<Change>> {
4831 public getDiffs() {
4832 super("getDiffs");
4833 }
4834
4835 public getDiffs_args getEmptyArgsInstance() {
4836 return new getDiffs_args();
4837 }
4838
4839 public AsyncMethodCallback<List<Change>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4840 final org.apache.thrift.AsyncProcessFunction fcall = this;
4841 return new AsyncMethodCallback<List<Change>>() {
4842 public void onComplete(List<Change> o) {
4843 getDiffs_result result = new getDiffs_result();
4844 result.success = o;
4845 try {
4846 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4847 return;
4848 } catch (Exception e) {
4849 LOGGER.error("Exception writing to internal frame buffer", e);
4850 }
4851 fb.close();
4852 }
4853 public void onError(Exception e) {
4854 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4855 org.apache.thrift.TBase msg;
4856 getDiffs_result result = new getDiffs_result();
4857 if (e instanceof CentralDogmaException) {
4858 result.e = (CentralDogmaException) e;
4859 result.setEIsSet(true);
4860 msg = result;
4861 }
4862 else
4863 {
4864 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4865 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4866 }
4867 try {
4868 fcall.sendResponse(fb,msg,msgType,seqid);
4869 return;
4870 } catch (Exception ex) {
4871 LOGGER.error("Exception writing to internal frame buffer", ex);
4872 }
4873 fb.close();
4874 }
4875 };
4876 }
4877
4878 protected boolean isOneway() {
4879 return false;
4880 }
4881
4882 public void start(I iface, getDiffs_args args, org.apache.thrift.async.AsyncMethodCallback<List<Change>> resultHandler) throws TException {
4883 iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler);
4884 }
4885 }
4886
4887 public static class getPreviewDiffs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPreviewDiffs_args, List<Change>> {
4888 public getPreviewDiffs() {
4889 super("getPreviewDiffs");
4890 }
4891
4892 public getPreviewDiffs_args getEmptyArgsInstance() {
4893 return new getPreviewDiffs_args();
4894 }
4895
4896 public AsyncMethodCallback<List<Change>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4897 final org.apache.thrift.AsyncProcessFunction fcall = this;
4898 return new AsyncMethodCallback<List<Change>>() {
4899 public void onComplete(List<Change> o) {
4900 getPreviewDiffs_result result = new getPreviewDiffs_result();
4901 result.success = o;
4902 try {
4903 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4904 return;
4905 } catch (Exception e) {
4906 LOGGER.error("Exception writing to internal frame buffer", e);
4907 }
4908 fb.close();
4909 }
4910 public void onError(Exception e) {
4911 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4912 org.apache.thrift.TBase msg;
4913 getPreviewDiffs_result result = new getPreviewDiffs_result();
4914 if (e instanceof CentralDogmaException) {
4915 result.e = (CentralDogmaException) e;
4916 result.setEIsSet(true);
4917 msg = result;
4918 }
4919 else
4920 {
4921 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4922 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4923 }
4924 try {
4925 fcall.sendResponse(fb,msg,msgType,seqid);
4926 return;
4927 } catch (Exception ex) {
4928 LOGGER.error("Exception writing to internal frame buffer", ex);
4929 }
4930 fb.close();
4931 }
4932 };
4933 }
4934
4935 protected boolean isOneway() {
4936 return false;
4937 }
4938
4939 public void start(I iface, getPreviewDiffs_args args, org.apache.thrift.async.AsyncMethodCallback<List<Change>> resultHandler) throws TException {
4940 iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes,resultHandler);
4941 }
4942 }
4943
4944 public static class push<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, push_args, Commit> {
4945 public push() {
4946 super("push");
4947 }
4948
4949 public push_args getEmptyArgsInstance() {
4950 return new push_args();
4951 }
4952
4953 public AsyncMethodCallback<Commit> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
4954 final org.apache.thrift.AsyncProcessFunction fcall = this;
4955 return new AsyncMethodCallback<Commit>() {
4956 public void onComplete(Commit o) {
4957 push_result result = new push_result();
4958 result.success = o;
4959 try {
4960 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
4961 return;
4962 } catch (Exception e) {
4963 LOGGER.error("Exception writing to internal frame buffer", e);
4964 }
4965 fb.close();
4966 }
4967 public void onError(Exception e) {
4968 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
4969 org.apache.thrift.TBase msg;
4970 push_result result = new push_result();
4971 if (e instanceof CentralDogmaException) {
4972 result.e = (CentralDogmaException) e;
4973 result.setEIsSet(true);
4974 msg = result;
4975 }
4976 else
4977 {
4978 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
4979 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
4980 }
4981 try {
4982 fcall.sendResponse(fb,msg,msgType,seqid);
4983 return;
4984 } catch (Exception ex) {
4985 LOGGER.error("Exception writing to internal frame buffer", ex);
4986 }
4987 fb.close();
4988 }
4989 };
4990 }
4991
4992 protected boolean isOneway() {
4993 return false;
4994 }
4995
4996 public void start(I iface, push_args args, org.apache.thrift.async.AsyncMethodCallback<Commit> resultHandler) throws TException {
4997 iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes,resultHandler);
4998 }
4999 }
5000
5001 public static class getFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFile_args, GetFileResult> {
5002 public getFile() {
5003 super("getFile");
5004 }
5005
5006 public getFile_args getEmptyArgsInstance() {
5007 return new getFile_args();
5008 }
5009
5010 public AsyncMethodCallback<GetFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5011 final org.apache.thrift.AsyncProcessFunction fcall = this;
5012 return new AsyncMethodCallback<GetFileResult>() {
5013 public void onComplete(GetFileResult o) {
5014 getFile_result result = new getFile_result();
5015 result.success = o;
5016 try {
5017 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5018 return;
5019 } catch (Exception e) {
5020 LOGGER.error("Exception writing to internal frame buffer", e);
5021 }
5022 fb.close();
5023 }
5024 public void onError(Exception e) {
5025 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5026 org.apache.thrift.TBase msg;
5027 getFile_result result = new getFile_result();
5028 if (e instanceof CentralDogmaException) {
5029 result.e = (CentralDogmaException) e;
5030 result.setEIsSet(true);
5031 msg = result;
5032 }
5033 else
5034 {
5035 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5036 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5037 }
5038 try {
5039 fcall.sendResponse(fb,msg,msgType,seqid);
5040 return;
5041 } catch (Exception ex) {
5042 LOGGER.error("Exception writing to internal frame buffer", ex);
5043 }
5044 fb.close();
5045 }
5046 };
5047 }
5048
5049 protected boolean isOneway() {
5050 return false;
5051 }
5052
5053 public void start(I iface, getFile_args args, org.apache.thrift.async.AsyncMethodCallback<GetFileResult> resultHandler) throws TException {
5054 iface.getFile(args.projectName, args.repositoryName, args.revision, args.query,resultHandler);
5055 }
5056 }
5057
5058 public static class diffFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffFile_args, DiffFileResult> {
5059 public diffFile() {
5060 super("diffFile");
5061 }
5062
5063 public diffFile_args getEmptyArgsInstance() {
5064 return new diffFile_args();
5065 }
5066
5067 public AsyncMethodCallback<DiffFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5068 final org.apache.thrift.AsyncProcessFunction fcall = this;
5069 return new AsyncMethodCallback<DiffFileResult>() {
5070 public void onComplete(DiffFileResult o) {
5071 diffFile_result result = new diffFile_result();
5072 result.success = o;
5073 try {
5074 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5075 return;
5076 } catch (Exception e) {
5077 LOGGER.error("Exception writing to internal frame buffer", e);
5078 }
5079 fb.close();
5080 }
5081 public void onError(Exception e) {
5082 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5083 org.apache.thrift.TBase msg;
5084 diffFile_result result = new diffFile_result();
5085 if (e instanceof CentralDogmaException) {
5086 result.e = (CentralDogmaException) e;
5087 result.setEIsSet(true);
5088 msg = result;
5089 }
5090 else
5091 {
5092 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5093 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5094 }
5095 try {
5096 fcall.sendResponse(fb,msg,msgType,seqid);
5097 return;
5098 } catch (Exception ex) {
5099 LOGGER.error("Exception writing to internal frame buffer", ex);
5100 }
5101 fb.close();
5102 }
5103 };
5104 }
5105
5106 protected boolean isOneway() {
5107 return false;
5108 }
5109
5110 public void start(I iface, diffFile_args args, org.apache.thrift.async.AsyncMethodCallback<DiffFileResult> resultHandler) throws TException {
5111 iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query,resultHandler);
5112 }
5113 }
5114
5115 public static class mergeFiles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, mergeFiles_args, MergedEntry> {
5116 public mergeFiles() {
5117 super("mergeFiles");
5118 }
5119
5120 public mergeFiles_args getEmptyArgsInstance() {
5121 return new mergeFiles_args();
5122 }
5123
5124 public AsyncMethodCallback<MergedEntry> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5125 final org.apache.thrift.AsyncProcessFunction fcall = this;
5126 return new AsyncMethodCallback<MergedEntry>() {
5127 public void onComplete(MergedEntry o) {
5128 mergeFiles_result result = new mergeFiles_result();
5129 result.success = o;
5130 try {
5131 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5132 return;
5133 } catch (Exception e) {
5134 LOGGER.error("Exception writing to internal frame buffer", e);
5135 }
5136 fb.close();
5137 }
5138 public void onError(Exception e) {
5139 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5140 org.apache.thrift.TBase msg;
5141 mergeFiles_result result = new mergeFiles_result();
5142 if (e instanceof CentralDogmaException) {
5143 result.e = (CentralDogmaException) e;
5144 result.setEIsSet(true);
5145 msg = result;
5146 }
5147 else
5148 {
5149 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5150 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5151 }
5152 try {
5153 fcall.sendResponse(fb,msg,msgType,seqid);
5154 return;
5155 } catch (Exception ex) {
5156 LOGGER.error("Exception writing to internal frame buffer", ex);
5157 }
5158 fb.close();
5159 }
5160 };
5161 }
5162
5163 protected boolean isOneway() {
5164 return false;
5165 }
5166
5167 public void start(I iface, mergeFiles_args args, org.apache.thrift.async.AsyncMethodCallback<MergedEntry> resultHandler) throws TException {
5168 iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery,resultHandler);
5169 }
5170 }
5171
5172 public static class watchRepository<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, watchRepository_args, WatchRepositoryResult> {
5173 public watchRepository() {
5174 super("watchRepository");
5175 }
5176
5177 public watchRepository_args getEmptyArgsInstance() {
5178 return new watchRepository_args();
5179 }
5180
5181 public AsyncMethodCallback<WatchRepositoryResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5182 final org.apache.thrift.AsyncProcessFunction fcall = this;
5183 return new AsyncMethodCallback<WatchRepositoryResult>() {
5184 public void onComplete(WatchRepositoryResult o) {
5185 watchRepository_result result = new watchRepository_result();
5186 result.success = o;
5187 try {
5188 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5189 return;
5190 } catch (Exception e) {
5191 LOGGER.error("Exception writing to internal frame buffer", e);
5192 }
5193 fb.close();
5194 }
5195 public void onError(Exception e) {
5196 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5197 org.apache.thrift.TBase msg;
5198 watchRepository_result result = new watchRepository_result();
5199 if (e instanceof CentralDogmaException) {
5200 result.e = (CentralDogmaException) e;
5201 result.setEIsSet(true);
5202 msg = result;
5203 }
5204 else
5205 {
5206 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5207 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5208 }
5209 try {
5210 fcall.sendResponse(fb,msg,msgType,seqid);
5211 return;
5212 } catch (Exception ex) {
5213 LOGGER.error("Exception writing to internal frame buffer", ex);
5214 }
5215 fb.close();
5216 }
5217 };
5218 }
5219
5220 protected boolean isOneway() {
5221 return false;
5222 }
5223
5224 public void start(I iface, watchRepository_args args, org.apache.thrift.async.AsyncMethodCallback<WatchRepositoryResult> resultHandler) throws TException {
5225 iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis,resultHandler);
5226 }
5227 }
5228
5229 public static class watchFile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, watchFile_args, WatchFileResult> {
5230 public watchFile() {
5231 super("watchFile");
5232 }
5233
5234 public watchFile_args getEmptyArgsInstance() {
5235 return new watchFile_args();
5236 }
5237
5238 public AsyncMethodCallback<WatchFileResult> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5239 final org.apache.thrift.AsyncProcessFunction fcall = this;
5240 return new AsyncMethodCallback<WatchFileResult>() {
5241 public void onComplete(WatchFileResult o) {
5242 watchFile_result result = new watchFile_result();
5243 result.success = o;
5244 try {
5245 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5246 return;
5247 } catch (Exception e) {
5248 LOGGER.error("Exception writing to internal frame buffer", e);
5249 }
5250 fb.close();
5251 }
5252 public void onError(Exception e) {
5253 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5254 org.apache.thrift.TBase msg;
5255 watchFile_result result = new watchFile_result();
5256 if (e instanceof CentralDogmaException) {
5257 result.e = (CentralDogmaException) e;
5258 result.setEIsSet(true);
5259 msg = result;
5260 }
5261 else
5262 {
5263 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5264 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5265 }
5266 try {
5267 fcall.sendResponse(fb,msg,msgType,seqid);
5268 return;
5269 } catch (Exception ex) {
5270 LOGGER.error("Exception writing to internal frame buffer", ex);
5271 }
5272 fb.close();
5273 }
5274 };
5275 }
5276
5277 protected boolean isOneway() {
5278 return false;
5279 }
5280
5281 public void start(I iface, watchFile_args args, org.apache.thrift.async.AsyncMethodCallback<WatchFileResult> resultHandler) throws TException {
5282 iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis,resultHandler);
5283 }
5284 }
5285
5286 public static class getSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSchema_args, Schema> {
5287 public getSchema() {
5288 super("getSchema");
5289 }
5290
5291 public getSchema_args getEmptyArgsInstance() {
5292 return new getSchema_args();
5293 }
5294
5295 public AsyncMethodCallback<Schema> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5296 final org.apache.thrift.AsyncProcessFunction fcall = this;
5297 return new AsyncMethodCallback<Schema>() {
5298 public void onComplete(Schema o) {
5299 getSchema_result result = new getSchema_result();
5300 result.success = o;
5301 try {
5302 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5303 return;
5304 } catch (Exception e) {
5305 LOGGER.error("Exception writing to internal frame buffer", e);
5306 }
5307 fb.close();
5308 }
5309 public void onError(Exception e) {
5310 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5311 org.apache.thrift.TBase msg;
5312 getSchema_result result = new getSchema_result();
5313 if (e instanceof CentralDogmaException) {
5314 result.e = (CentralDogmaException) e;
5315 result.setEIsSet(true);
5316 msg = result;
5317 }
5318 else
5319 {
5320 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5321 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5322 }
5323 try {
5324 fcall.sendResponse(fb,msg,msgType,seqid);
5325 return;
5326 } catch (Exception ex) {
5327 LOGGER.error("Exception writing to internal frame buffer", ex);
5328 }
5329 fb.close();
5330 }
5331 };
5332 }
5333
5334 protected boolean isOneway() {
5335 return false;
5336 }
5337
5338 public void start(I iface, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback<Schema> resultHandler) throws TException {
5339 iface.getSchema(args.projectName,resultHandler);
5340 }
5341 }
5342
5343 public static class saveSchema<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveSchema_args, Void> {
5344 public saveSchema() {
5345 super("saveSchema");
5346 }
5347
5348 public saveSchema_args getEmptyArgsInstance() {
5349 return new saveSchema_args();
5350 }
5351
5352 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5353 final org.apache.thrift.AsyncProcessFunction fcall = this;
5354 return new AsyncMethodCallback<Void>() {
5355 public void onComplete(Void o) {
5356 saveSchema_result result = new saveSchema_result();
5357 try {
5358 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5359 return;
5360 } catch (Exception e) {
5361 LOGGER.error("Exception writing to internal frame buffer", e);
5362 }
5363 fb.close();
5364 }
5365 public void onError(Exception e) {
5366 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5367 org.apache.thrift.TBase msg;
5368 saveSchema_result result = new saveSchema_result();
5369 if (e instanceof CentralDogmaException) {
5370 result.e = (CentralDogmaException) e;
5371 result.setEIsSet(true);
5372 msg = result;
5373 }
5374 else
5375 {
5376 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5377 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5378 }
5379 try {
5380 fcall.sendResponse(fb,msg,msgType,seqid);
5381 return;
5382 } catch (Exception ex) {
5383 LOGGER.error("Exception writing to internal frame buffer", ex);
5384 }
5385 fb.close();
5386 }
5387 };
5388 }
5389
5390 protected boolean isOneway() {
5391 return false;
5392 }
5393
5394 public void start(I iface, saveSchema_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5395 iface.saveSchema(args.projectName, args.schema,resultHandler);
5396 }
5397 }
5398
5399 public static class getNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getNamedQuery_args, NamedQuery> {
5400 public getNamedQuery() {
5401 super("getNamedQuery");
5402 }
5403
5404 public getNamedQuery_args getEmptyArgsInstance() {
5405 return new getNamedQuery_args();
5406 }
5407
5408 public AsyncMethodCallback<NamedQuery> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5409 final org.apache.thrift.AsyncProcessFunction fcall = this;
5410 return new AsyncMethodCallback<NamedQuery>() {
5411 public void onComplete(NamedQuery o) {
5412 getNamedQuery_result result = new getNamedQuery_result();
5413 result.success = o;
5414 try {
5415 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5416 return;
5417 } catch (Exception e) {
5418 LOGGER.error("Exception writing to internal frame buffer", e);
5419 }
5420 fb.close();
5421 }
5422 public void onError(Exception e) {
5423 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5424 org.apache.thrift.TBase msg;
5425 getNamedQuery_result result = new getNamedQuery_result();
5426 if (e instanceof CentralDogmaException) {
5427 result.e = (CentralDogmaException) e;
5428 result.setEIsSet(true);
5429 msg = result;
5430 }
5431 else
5432 {
5433 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5434 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5435 }
5436 try {
5437 fcall.sendResponse(fb,msg,msgType,seqid);
5438 return;
5439 } catch (Exception ex) {
5440 LOGGER.error("Exception writing to internal frame buffer", ex);
5441 }
5442 fb.close();
5443 }
5444 };
5445 }
5446
5447 protected boolean isOneway() {
5448 return false;
5449 }
5450
5451 public void start(I iface, getNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<NamedQuery> resultHandler) throws TException {
5452 iface.getNamedQuery(args.projectName, args.name,resultHandler);
5453 }
5454 }
5455
5456 public static class saveNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveNamedQuery_args, Void> {
5457 public saveNamedQuery() {
5458 super("saveNamedQuery");
5459 }
5460
5461 public saveNamedQuery_args getEmptyArgsInstance() {
5462 return new saveNamedQuery_args();
5463 }
5464
5465 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5466 final org.apache.thrift.AsyncProcessFunction fcall = this;
5467 return new AsyncMethodCallback<Void>() {
5468 public void onComplete(Void o) {
5469 saveNamedQuery_result result = new saveNamedQuery_result();
5470 try {
5471 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5472 return;
5473 } catch (Exception e) {
5474 LOGGER.error("Exception writing to internal frame buffer", e);
5475 }
5476 fb.close();
5477 }
5478 public void onError(Exception e) {
5479 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5480 org.apache.thrift.TBase msg;
5481 saveNamedQuery_result result = new saveNamedQuery_result();
5482 if (e instanceof CentralDogmaException) {
5483 result.e = (CentralDogmaException) e;
5484 result.setEIsSet(true);
5485 msg = result;
5486 }
5487 else
5488 {
5489 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5490 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5491 }
5492 try {
5493 fcall.sendResponse(fb,msg,msgType,seqid);
5494 return;
5495 } catch (Exception ex) {
5496 LOGGER.error("Exception writing to internal frame buffer", ex);
5497 }
5498 fb.close();
5499 }
5500 };
5501 }
5502
5503 protected boolean isOneway() {
5504 return false;
5505 }
5506
5507 public void start(I iface, saveNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5508 iface.saveNamedQuery(args.projectName, args.namedQuery,resultHandler);
5509 }
5510 }
5511
5512 public static class removeNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeNamedQuery_args, Void> {
5513 public removeNamedQuery() {
5514 super("removeNamedQuery");
5515 }
5516
5517 public removeNamedQuery_args getEmptyArgsInstance() {
5518 return new removeNamedQuery_args();
5519 }
5520
5521 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5522 final org.apache.thrift.AsyncProcessFunction fcall = this;
5523 return new AsyncMethodCallback<Void>() {
5524 public void onComplete(Void o) {
5525 removeNamedQuery_result result = new removeNamedQuery_result();
5526 try {
5527 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5528 return;
5529 } catch (Exception e) {
5530 LOGGER.error("Exception writing to internal frame buffer", e);
5531 }
5532 fb.close();
5533 }
5534 public void onError(Exception e) {
5535 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5536 org.apache.thrift.TBase msg;
5537 removeNamedQuery_result result = new removeNamedQuery_result();
5538 if (e instanceof CentralDogmaException) {
5539 result.e = (CentralDogmaException) e;
5540 result.setEIsSet(true);
5541 msg = result;
5542 }
5543 else
5544 {
5545 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5546 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5547 }
5548 try {
5549 fcall.sendResponse(fb,msg,msgType,seqid);
5550 return;
5551 } catch (Exception ex) {
5552 LOGGER.error("Exception writing to internal frame buffer", ex);
5553 }
5554 fb.close();
5555 }
5556 };
5557 }
5558
5559 protected boolean isOneway() {
5560 return false;
5561 }
5562
5563 public void start(I iface, removeNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5564 iface.removeNamedQuery(args.projectName, args.name,resultHandler);
5565 }
5566 }
5567
5568 public static class listNamedQueries<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listNamedQueries_args, List<NamedQuery>> {
5569 public listNamedQueries() {
5570 super("listNamedQueries");
5571 }
5572
5573 public listNamedQueries_args getEmptyArgsInstance() {
5574 return new listNamedQueries_args();
5575 }
5576
5577 public AsyncMethodCallback<List<NamedQuery>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5578 final org.apache.thrift.AsyncProcessFunction fcall = this;
5579 return new AsyncMethodCallback<List<NamedQuery>>() {
5580 public void onComplete(List<NamedQuery> o) {
5581 listNamedQueries_result result = new listNamedQueries_result();
5582 result.success = o;
5583 try {
5584 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5585 return;
5586 } catch (Exception e) {
5587 LOGGER.error("Exception writing to internal frame buffer", e);
5588 }
5589 fb.close();
5590 }
5591 public void onError(Exception e) {
5592 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5593 org.apache.thrift.TBase msg;
5594 listNamedQueries_result result = new listNamedQueries_result();
5595 if (e instanceof CentralDogmaException) {
5596 result.e = (CentralDogmaException) e;
5597 result.setEIsSet(true);
5598 msg = result;
5599 }
5600 else
5601 {
5602 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5603 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5604 }
5605 try {
5606 fcall.sendResponse(fb,msg,msgType,seqid);
5607 return;
5608 } catch (Exception ex) {
5609 LOGGER.error("Exception writing to internal frame buffer", ex);
5610 }
5611 fb.close();
5612 }
5613 };
5614 }
5615
5616 protected boolean isOneway() {
5617 return false;
5618 }
5619
5620 public void start(I iface, listNamedQueries_args args, org.apache.thrift.async.AsyncMethodCallback<List<NamedQuery>> resultHandler) throws TException {
5621 iface.listNamedQueries(args.projectName,resultHandler);
5622 }
5623 }
5624
5625 public static class getPlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPlugin_args, Plugin> {
5626 public getPlugin() {
5627 super("getPlugin");
5628 }
5629
5630 public getPlugin_args getEmptyArgsInstance() {
5631 return new getPlugin_args();
5632 }
5633
5634 public AsyncMethodCallback<Plugin> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5635 final org.apache.thrift.AsyncProcessFunction fcall = this;
5636 return new AsyncMethodCallback<Plugin>() {
5637 public void onComplete(Plugin o) {
5638 getPlugin_result result = new getPlugin_result();
5639 result.success = o;
5640 try {
5641 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5642 return;
5643 } catch (Exception e) {
5644 LOGGER.error("Exception writing to internal frame buffer", e);
5645 }
5646 fb.close();
5647 }
5648 public void onError(Exception e) {
5649 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5650 org.apache.thrift.TBase msg;
5651 getPlugin_result result = new getPlugin_result();
5652 if (e instanceof CentralDogmaException) {
5653 result.e = (CentralDogmaException) e;
5654 result.setEIsSet(true);
5655 msg = result;
5656 }
5657 else
5658 {
5659 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5660 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5661 }
5662 try {
5663 fcall.sendResponse(fb,msg,msgType,seqid);
5664 return;
5665 } catch (Exception ex) {
5666 LOGGER.error("Exception writing to internal frame buffer", ex);
5667 }
5668 fb.close();
5669 }
5670 };
5671 }
5672
5673 protected boolean isOneway() {
5674 return false;
5675 }
5676
5677 public void start(I iface, getPlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Plugin> resultHandler) throws TException {
5678 iface.getPlugin(args.projectName, args.pluginName,resultHandler);
5679 }
5680 }
5681
5682 public static class savePlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, savePlugin_args, Void> {
5683 public savePlugin() {
5684 super("savePlugin");
5685 }
5686
5687 public savePlugin_args getEmptyArgsInstance() {
5688 return new savePlugin_args();
5689 }
5690
5691 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5692 final org.apache.thrift.AsyncProcessFunction fcall = this;
5693 return new AsyncMethodCallback<Void>() {
5694 public void onComplete(Void o) {
5695 savePlugin_result result = new savePlugin_result();
5696 try {
5697 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5698 return;
5699 } catch (Exception e) {
5700 LOGGER.error("Exception writing to internal frame buffer", e);
5701 }
5702 fb.close();
5703 }
5704 public void onError(Exception e) {
5705 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5706 org.apache.thrift.TBase msg;
5707 savePlugin_result result = new savePlugin_result();
5708 if (e instanceof CentralDogmaException) {
5709 result.e = (CentralDogmaException) e;
5710 result.setEIsSet(true);
5711 msg = result;
5712 }
5713 else
5714 {
5715 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5716 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5717 }
5718 try {
5719 fcall.sendResponse(fb,msg,msgType,seqid);
5720 return;
5721 } catch (Exception ex) {
5722 LOGGER.error("Exception writing to internal frame buffer", ex);
5723 }
5724 fb.close();
5725 }
5726 };
5727 }
5728
5729 protected boolean isOneway() {
5730 return false;
5731 }
5732
5733 public void start(I iface, savePlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5734 iface.savePlugin(args.projectName, args.plugin,resultHandler);
5735 }
5736 }
5737
5738 public static class removePlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removePlugin_args, Void> {
5739 public removePlugin() {
5740 super("removePlugin");
5741 }
5742
5743 public removePlugin_args getEmptyArgsInstance() {
5744 return new removePlugin_args();
5745 }
5746
5747 public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5748 final org.apache.thrift.AsyncProcessFunction fcall = this;
5749 return new AsyncMethodCallback<Void>() {
5750 public void onComplete(Void o) {
5751 removePlugin_result result = new removePlugin_result();
5752 try {
5753 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5754 return;
5755 } catch (Exception e) {
5756 LOGGER.error("Exception writing to internal frame buffer", e);
5757 }
5758 fb.close();
5759 }
5760 public void onError(Exception e) {
5761 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5762 org.apache.thrift.TBase msg;
5763 removePlugin_result result = new removePlugin_result();
5764 if (e instanceof CentralDogmaException) {
5765 result.e = (CentralDogmaException) e;
5766 result.setEIsSet(true);
5767 msg = result;
5768 }
5769 else
5770 {
5771 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5772 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5773 }
5774 try {
5775 fcall.sendResponse(fb,msg,msgType,seqid);
5776 return;
5777 } catch (Exception ex) {
5778 LOGGER.error("Exception writing to internal frame buffer", ex);
5779 }
5780 fb.close();
5781 }
5782 };
5783 }
5784
5785 protected boolean isOneway() {
5786 return false;
5787 }
5788
5789 public void start(I iface, removePlugin_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
5790 iface.removePlugin(args.projectName, args.pluginName,resultHandler);
5791 }
5792 }
5793
5794 public static class listPlugins<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listPlugins_args, List<Plugin>> {
5795 public listPlugins() {
5796 super("listPlugins");
5797 }
5798
5799 public listPlugins_args getEmptyArgsInstance() {
5800 return new listPlugins_args();
5801 }
5802
5803 public AsyncMethodCallback<List<Plugin>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5804 final org.apache.thrift.AsyncProcessFunction fcall = this;
5805 return new AsyncMethodCallback<List<Plugin>>() {
5806 public void onComplete(List<Plugin> o) {
5807 listPlugins_result result = new listPlugins_result();
5808 result.success = o;
5809 try {
5810 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5811 return;
5812 } catch (Exception e) {
5813 LOGGER.error("Exception writing to internal frame buffer", e);
5814 }
5815 fb.close();
5816 }
5817 public void onError(Exception e) {
5818 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5819 org.apache.thrift.TBase msg;
5820 listPlugins_result result = new listPlugins_result();
5821 if (e instanceof CentralDogmaException) {
5822 result.e = (CentralDogmaException) e;
5823 result.setEIsSet(true);
5824 msg = result;
5825 }
5826 else
5827 {
5828 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5829 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5830 }
5831 try {
5832 fcall.sendResponse(fb,msg,msgType,seqid);
5833 return;
5834 } catch (Exception ex) {
5835 LOGGER.error("Exception writing to internal frame buffer", ex);
5836 }
5837 fb.close();
5838 }
5839 };
5840 }
5841
5842 protected boolean isOneway() {
5843 return false;
5844 }
5845
5846 public void start(I iface, listPlugins_args args, org.apache.thrift.async.AsyncMethodCallback<List<Plugin>> resultHandler) throws TException {
5847 iface.listPlugins(args.projectName,resultHandler);
5848 }
5849 }
5850
5851 public static class listPluginOperations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listPluginOperations_args, List<PluginOperation>> {
5852 public listPluginOperations() {
5853 super("listPluginOperations");
5854 }
5855
5856 public listPluginOperations_args getEmptyArgsInstance() {
5857 return new listPluginOperations_args();
5858 }
5859
5860 public AsyncMethodCallback<List<PluginOperation>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5861 final org.apache.thrift.AsyncProcessFunction fcall = this;
5862 return new AsyncMethodCallback<List<PluginOperation>>() {
5863 public void onComplete(List<PluginOperation> o) {
5864 listPluginOperations_result result = new listPluginOperations_result();
5865 result.success = o;
5866 try {
5867 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5868 return;
5869 } catch (Exception e) {
5870 LOGGER.error("Exception writing to internal frame buffer", e);
5871 }
5872 fb.close();
5873 }
5874 public void onError(Exception e) {
5875 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5876 org.apache.thrift.TBase msg;
5877 listPluginOperations_result result = new listPluginOperations_result();
5878 if (e instanceof CentralDogmaException) {
5879 result.e = (CentralDogmaException) e;
5880 result.setEIsSet(true);
5881 msg = result;
5882 }
5883 else
5884 {
5885 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5886 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5887 }
5888 try {
5889 fcall.sendResponse(fb,msg,msgType,seqid);
5890 return;
5891 } catch (Exception ex) {
5892 LOGGER.error("Exception writing to internal frame buffer", ex);
5893 }
5894 fb.close();
5895 }
5896 };
5897 }
5898
5899 protected boolean isOneway() {
5900 return false;
5901 }
5902
5903 public void start(I iface, listPluginOperations_args args, org.apache.thrift.async.AsyncMethodCallback<List<PluginOperation>> resultHandler) throws TException {
5904 iface.listPluginOperations(args.projectName,resultHandler);
5905 }
5906 }
5907
5908 public static class performPluginOperation<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, performPluginOperation_args, String> {
5909 public performPluginOperation() {
5910 super("performPluginOperation");
5911 }
5912
5913 public performPluginOperation_args getEmptyArgsInstance() {
5914 return new performPluginOperation_args();
5915 }
5916
5917 public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5918 final org.apache.thrift.AsyncProcessFunction fcall = this;
5919 return new AsyncMethodCallback<String>() {
5920 public void onComplete(String o) {
5921 performPluginOperation_result result = new performPluginOperation_result();
5922 result.success = o;
5923 try {
5924 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5925 return;
5926 } catch (Exception e) {
5927 LOGGER.error("Exception writing to internal frame buffer", e);
5928 }
5929 fb.close();
5930 }
5931 public void onError(Exception e) {
5932 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5933 org.apache.thrift.TBase msg;
5934 performPluginOperation_result result = new performPluginOperation_result();
5935 if (e instanceof CentralDogmaException) {
5936 result.e = (CentralDogmaException) e;
5937 result.setEIsSet(true);
5938 msg = result;
5939 }
5940 else
5941 {
5942 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
5943 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
5944 }
5945 try {
5946 fcall.sendResponse(fb,msg,msgType,seqid);
5947 return;
5948 } catch (Exception ex) {
5949 LOGGER.error("Exception writing to internal frame buffer", ex);
5950 }
5951 fb.close();
5952 }
5953 };
5954 }
5955
5956 protected boolean isOneway() {
5957 return false;
5958 }
5959
5960 public void start(I iface, performPluginOperation_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
5961 iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params,resultHandler);
5962 }
5963 }
5964
5965 public static class queryByNamedQuery<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, queryByNamedQuery_args, String> {
5966 public queryByNamedQuery() {
5967 super("queryByNamedQuery");
5968 }
5969
5970 public queryByNamedQuery_args getEmptyArgsInstance() {
5971 return new queryByNamedQuery_args();
5972 }
5973
5974 public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
5975 final org.apache.thrift.AsyncProcessFunction fcall = this;
5976 return new AsyncMethodCallback<String>() {
5977 public void onComplete(String o) {
5978 queryByNamedQuery_result result = new queryByNamedQuery_result();
5979 result.success = o;
5980 try {
5981 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
5982 return;
5983 } catch (Exception e) {
5984 LOGGER.error("Exception writing to internal frame buffer", e);
5985 }
5986 fb.close();
5987 }
5988 public void onError(Exception e) {
5989 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
5990 org.apache.thrift.TBase msg;
5991 queryByNamedQuery_result result = new queryByNamedQuery_result();
5992 if (e instanceof CentralDogmaException) {
5993 result.e = (CentralDogmaException) e;
5994 result.setEIsSet(true);
5995 msg = result;
5996 }
5997 else
5998 {
5999 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
6000 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
6001 }
6002 try {
6003 fcall.sendResponse(fb,msg,msgType,seqid);
6004 return;
6005 } catch (Exception ex) {
6006 LOGGER.error("Exception writing to internal frame buffer", ex);
6007 }
6008 fb.close();
6009 }
6010 };
6011 }
6012
6013 protected boolean isOneway() {
6014 return false;
6015 }
6016
6017 public void start(I iface, queryByNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
6018 iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision,resultHandler);
6019 }
6020 }
6021
6022 public static class listSubscribers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listSubscribers_args, List<Subscriber>> {
6023 public listSubscribers() {
6024 super("listSubscribers");
6025 }
6026
6027 public listSubscribers_args getEmptyArgsInstance() {
6028 return new listSubscribers_args();
6029 }
6030
6031 public AsyncMethodCallback<List<Subscriber>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
6032 final org.apache.thrift.AsyncProcessFunction fcall = this;
6033 return new AsyncMethodCallback<List<Subscriber>>() {
6034 public void onComplete(List<Subscriber> o) {
6035 listSubscribers_result result = new listSubscribers_result();
6036 result.success = o;
6037 try {
6038 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
6039 return;
6040 } catch (Exception e) {
6041 LOGGER.error("Exception writing to internal frame buffer", e);
6042 }
6043 fb.close();
6044 }
6045 public void onError(Exception e) {
6046 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
6047 org.apache.thrift.TBase msg;
6048 listSubscribers_result result = new listSubscribers_result();
6049 if (e instanceof CentralDogmaException) {
6050 result.e = (CentralDogmaException) e;
6051 result.setEIsSet(true);
6052 msg = result;
6053 }
6054 else
6055 {
6056 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
6057 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
6058 }
6059 try {
6060 fcall.sendResponse(fb,msg,msgType,seqid);
6061 return;
6062 } catch (Exception ex) {
6063 LOGGER.error("Exception writing to internal frame buffer", ex);
6064 }
6065 fb.close();
6066 }
6067 };
6068 }
6069
6070 protected boolean isOneway() {
6071 return false;
6072 }
6073
6074 public void start(I iface, listSubscribers_args args, org.apache.thrift.async.AsyncMethodCallback<List<Subscriber>> resultHandler) throws TException {
6075 iface.listSubscribers(args.projectName, args.repositoryName, args.path,resultHandler);
6076 }
6077 }
6078
6079 }
6080
6081 public static class createProject_args implements org.apache.thrift.TBase<createProject_args, createProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<createProject_args> {
6082 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_args");
6083
6084 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
6085
6086 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6087 static {
6088 schemes.put(StandardScheme.class, new createProject_argsStandardSchemeFactory());
6089 schemes.put(TupleScheme.class, new createProject_argsTupleSchemeFactory());
6090 }
6091
6092 public String name;
6093
6094
6095 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6096 NAME((short)1, "name");
6097
6098 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6099
6100 static {
6101 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6102 byName.put(field.getFieldName(), field);
6103 }
6104 }
6105
6106
6107
6108
6109 public static _Fields findByThriftId(int fieldId) {
6110 switch(fieldId) {
6111 case 1:
6112 return NAME;
6113 default:
6114 return null;
6115 }
6116 }
6117
6118
6119
6120
6121
6122 public static _Fields findByThriftIdOrThrow(int fieldId) {
6123 _Fields fields = findByThriftId(fieldId);
6124 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6125 return fields;
6126 }
6127
6128
6129
6130
6131 public static _Fields findByName(String name) {
6132 return byName.get(name);
6133 }
6134
6135 private final short _thriftId;
6136 private final String _fieldName;
6137
6138 _Fields(short thriftId, String fieldName) {
6139 _thriftId = thriftId;
6140 _fieldName = fieldName;
6141 }
6142
6143 public short getThriftFieldId() {
6144 return _thriftId;
6145 }
6146
6147 public String getFieldName() {
6148 return _fieldName;
6149 }
6150 }
6151
6152
6153 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6154 static {
6155 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6156 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
6157 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6158 metaDataMap = Collections.unmodifiableMap(tmpMap);
6159 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_args.class, metaDataMap);
6160 }
6161
6162 public createProject_args() {
6163 }
6164
6165 public createProject_args(
6166 String name)
6167 {
6168 this();
6169 this.name = name;
6170 }
6171
6172
6173
6174
6175 public createProject_args(createProject_args other) {
6176 if (other.isSetName()) {
6177 this.name = other.name;
6178 }
6179 }
6180
6181 public createProject_args deepCopy() {
6182 return new createProject_args(this);
6183 }
6184
6185 @Override
6186 public void clear() {
6187 this.name = null;
6188 }
6189
6190 public String getName() {
6191 return this.name;
6192 }
6193
6194 public createProject_args setName(String name) {
6195 this.name = name;
6196 return this;
6197 }
6198
6199 public void unsetName() {
6200 this.name = null;
6201 }
6202
6203
6204 public boolean isSetName() {
6205 return this.name != null;
6206 }
6207
6208 public void setNameIsSet(boolean value) {
6209 if (!value) {
6210 this.name = null;
6211 }
6212 }
6213
6214 public void setFieldValue(_Fields field, Object value) {
6215 switch (field) {
6216 case NAME:
6217 if (value == null) {
6218 unsetName();
6219 } else {
6220 setName((String)value);
6221 }
6222 break;
6223
6224 }
6225 }
6226
6227 public Object getFieldValue(_Fields field) {
6228 switch (field) {
6229 case NAME:
6230 return getName();
6231
6232 }
6233 throw new IllegalStateException();
6234 }
6235
6236
6237 public boolean isSet(_Fields field) {
6238 if (field == null) {
6239 throw new IllegalArgumentException();
6240 }
6241
6242 switch (field) {
6243 case NAME:
6244 return isSetName();
6245 }
6246 throw new IllegalStateException();
6247 }
6248
6249 @Override
6250 public boolean equals(Object that) {
6251 if (that == null)
6252 return false;
6253 if (that instanceof createProject_args)
6254 return this.equals((createProject_args)that);
6255 return false;
6256 }
6257
6258 public boolean equals(createProject_args that) {
6259 if (that == null)
6260 return false;
6261
6262 boolean this_present_name = true && this.isSetName();
6263 boolean that_present_name = true && that.isSetName();
6264 if (this_present_name || that_present_name) {
6265 if (!(this_present_name && that_present_name))
6266 return false;
6267 if (!this.name.equals(that.name))
6268 return false;
6269 }
6270
6271 return true;
6272 }
6273
6274 @Override
6275 public int hashCode() {
6276 List<Object> list = new ArrayList<Object>();
6277
6278 boolean present_name = true && (isSetName());
6279 list.add(present_name);
6280 if (present_name)
6281 list.add(name);
6282
6283 return list.hashCode();
6284 }
6285
6286 @Override
6287 public int compareTo(createProject_args other) {
6288 if (!getClass().equals(other.getClass())) {
6289 return getClass().getName().compareTo(other.getClass().getName());
6290 }
6291
6292 int lastComparison = 0;
6293
6294 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
6295 if (lastComparison != 0) {
6296 return lastComparison;
6297 }
6298 if (isSetName()) {
6299 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
6300 if (lastComparison != 0) {
6301 return lastComparison;
6302 }
6303 }
6304 return 0;
6305 }
6306
6307 public _Fields fieldForId(int fieldId) {
6308 return _Fields.findByThriftId(fieldId);
6309 }
6310
6311 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6312 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6313 }
6314
6315 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6316 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6317 }
6318
6319 @Override
6320 public String toString() {
6321 StringBuilder sb = new StringBuilder("createProject_args(");
6322 boolean first = true;
6323
6324 sb.append("name:");
6325 if (this.name == null) {
6326 sb.append("null");
6327 } else {
6328 sb.append(this.name);
6329 }
6330 first = false;
6331 sb.append(")");
6332 return sb.toString();
6333 }
6334
6335 public void validate() throws org.apache.thrift.TException {
6336
6337
6338 }
6339
6340 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6341 try {
6342 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6343 } catch (org.apache.thrift.TException te) {
6344 throw new java.io.IOException(te);
6345 }
6346 }
6347
6348 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6349 try {
6350 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6351 } catch (org.apache.thrift.TException te) {
6352 throw new java.io.IOException(te);
6353 }
6354 }
6355
6356 private static class createProject_argsStandardSchemeFactory implements SchemeFactory {
6357 public createProject_argsStandardScheme getScheme() {
6358 return new createProject_argsStandardScheme();
6359 }
6360 }
6361
6362 private static class createProject_argsStandardScheme extends StandardScheme<createProject_args> {
6363
6364 public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_args struct) throws org.apache.thrift.TException {
6365 org.apache.thrift.protocol.TField schemeField;
6366 iprot.readStructBegin();
6367 while (true)
6368 {
6369 schemeField = iprot.readFieldBegin();
6370 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6371 break;
6372 }
6373 switch (schemeField.id) {
6374 case 1:
6375 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6376 struct.name = iprot.readString();
6377 struct.setNameIsSet(true);
6378 } else {
6379 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6380 }
6381 break;
6382 default:
6383 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6384 }
6385 iprot.readFieldEnd();
6386 }
6387 iprot.readStructEnd();
6388
6389
6390 struct.validate();
6391 }
6392
6393 public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_args struct) throws org.apache.thrift.TException {
6394 struct.validate();
6395
6396 oprot.writeStructBegin(STRUCT_DESC);
6397 if (struct.name != null) {
6398 oprot.writeFieldBegin(NAME_FIELD_DESC);
6399 oprot.writeString(struct.name);
6400 oprot.writeFieldEnd();
6401 }
6402 oprot.writeFieldStop();
6403 oprot.writeStructEnd();
6404 }
6405
6406 }
6407
6408 private static class createProject_argsTupleSchemeFactory implements SchemeFactory {
6409 public createProject_argsTupleScheme getScheme() {
6410 return new createProject_argsTupleScheme();
6411 }
6412 }
6413
6414 private static class createProject_argsTupleScheme extends TupleScheme<createProject_args> {
6415
6416 @Override
6417 public void write(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException {
6418 TTupleProtocol oprot = (TTupleProtocol) prot;
6419 BitSet optionals = new BitSet();
6420 if (struct.isSetName()) {
6421 optionals.set(0);
6422 }
6423 oprot.writeBitSet(optionals, 1);
6424 if (struct.isSetName()) {
6425 oprot.writeString(struct.name);
6426 }
6427 }
6428
6429 @Override
6430 public void read(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException {
6431 TTupleProtocol iprot = (TTupleProtocol) prot;
6432 BitSet incoming = iprot.readBitSet(1);
6433 if (incoming.get(0)) {
6434 struct.name = iprot.readString();
6435 struct.setNameIsSet(true);
6436 }
6437 }
6438 }
6439
6440 }
6441
6442 public static class createProject_result implements org.apache.thrift.TBase<createProject_result, createProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<createProject_result> {
6443 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_result");
6444
6445 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6446
6447 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6448 static {
6449 schemes.put(StandardScheme.class, new createProject_resultStandardSchemeFactory());
6450 schemes.put(TupleScheme.class, new createProject_resultTupleSchemeFactory());
6451 }
6452
6453 public CentralDogmaException e;
6454
6455
6456 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6457 E((short)1, "e");
6458
6459 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6460
6461 static {
6462 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6463 byName.put(field.getFieldName(), field);
6464 }
6465 }
6466
6467
6468
6469
6470 public static _Fields findByThriftId(int fieldId) {
6471 switch(fieldId) {
6472 case 1:
6473 return E;
6474 default:
6475 return null;
6476 }
6477 }
6478
6479
6480
6481
6482
6483 public static _Fields findByThriftIdOrThrow(int fieldId) {
6484 _Fields fields = findByThriftId(fieldId);
6485 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6486 return fields;
6487 }
6488
6489
6490
6491
6492 public static _Fields findByName(String name) {
6493 return byName.get(name);
6494 }
6495
6496 private final short _thriftId;
6497 private final String _fieldName;
6498
6499 _Fields(short thriftId, String fieldName) {
6500 _thriftId = thriftId;
6501 _fieldName = fieldName;
6502 }
6503
6504 public short getThriftFieldId() {
6505 return _thriftId;
6506 }
6507
6508 public String getFieldName() {
6509 return _fieldName;
6510 }
6511 }
6512
6513
6514 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6515 static {
6516 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6517 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
6518 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6519 metaDataMap = Collections.unmodifiableMap(tmpMap);
6520 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_result.class, metaDataMap);
6521 }
6522
6523 public createProject_result() {
6524 }
6525
6526 public createProject_result(
6527 CentralDogmaException e)
6528 {
6529 this();
6530 this.e = e;
6531 }
6532
6533
6534
6535
6536 public createProject_result(createProject_result other) {
6537 if (other.isSetE()) {
6538 this.e = new CentralDogmaException(other.e);
6539 }
6540 }
6541
6542 public createProject_result deepCopy() {
6543 return new createProject_result(this);
6544 }
6545
6546 @Override
6547 public void clear() {
6548 this.e = null;
6549 }
6550
6551 public CentralDogmaException getE() {
6552 return this.e;
6553 }
6554
6555 public createProject_result setE(CentralDogmaException e) {
6556 this.e = e;
6557 return this;
6558 }
6559
6560 public void unsetE() {
6561 this.e = null;
6562 }
6563
6564
6565 public boolean isSetE() {
6566 return this.e != null;
6567 }
6568
6569 public void setEIsSet(boolean value) {
6570 if (!value) {
6571 this.e = null;
6572 }
6573 }
6574
6575 public void setFieldValue(_Fields field, Object value) {
6576 switch (field) {
6577 case E:
6578 if (value == null) {
6579 unsetE();
6580 } else {
6581 setE((CentralDogmaException)value);
6582 }
6583 break;
6584
6585 }
6586 }
6587
6588 public Object getFieldValue(_Fields field) {
6589 switch (field) {
6590 case E:
6591 return getE();
6592
6593 }
6594 throw new IllegalStateException();
6595 }
6596
6597
6598 public boolean isSet(_Fields field) {
6599 if (field == null) {
6600 throw new IllegalArgumentException();
6601 }
6602
6603 switch (field) {
6604 case E:
6605 return isSetE();
6606 }
6607 throw new IllegalStateException();
6608 }
6609
6610 @Override
6611 public boolean equals(Object that) {
6612 if (that == null)
6613 return false;
6614 if (that instanceof createProject_result)
6615 return this.equals((createProject_result)that);
6616 return false;
6617 }
6618
6619 public boolean equals(createProject_result that) {
6620 if (that == null)
6621 return false;
6622
6623 boolean this_present_e = true && this.isSetE();
6624 boolean that_present_e = true && that.isSetE();
6625 if (this_present_e || that_present_e) {
6626 if (!(this_present_e && that_present_e))
6627 return false;
6628 if (!this.e.equals(that.e))
6629 return false;
6630 }
6631
6632 return true;
6633 }
6634
6635 @Override
6636 public int hashCode() {
6637 List<Object> list = new ArrayList<Object>();
6638
6639 boolean present_e = true && (isSetE());
6640 list.add(present_e);
6641 if (present_e)
6642 list.add(e);
6643
6644 return list.hashCode();
6645 }
6646
6647 @Override
6648 public int compareTo(createProject_result other) {
6649 if (!getClass().equals(other.getClass())) {
6650 return getClass().getName().compareTo(other.getClass().getName());
6651 }
6652
6653 int lastComparison = 0;
6654
6655 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
6656 if (lastComparison != 0) {
6657 return lastComparison;
6658 }
6659 if (isSetE()) {
6660 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
6661 if (lastComparison != 0) {
6662 return lastComparison;
6663 }
6664 }
6665 return 0;
6666 }
6667
6668 public _Fields fieldForId(int fieldId) {
6669 return _Fields.findByThriftId(fieldId);
6670 }
6671
6672 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6673 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6674 }
6675
6676 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6677 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6678 }
6679
6680 @Override
6681 public String toString() {
6682 StringBuilder sb = new StringBuilder("createProject_result(");
6683 boolean first = true;
6684
6685 sb.append("e:");
6686 if (this.e == null) {
6687 sb.append("null");
6688 } else {
6689 sb.append(this.e);
6690 }
6691 first = false;
6692 sb.append(")");
6693 return sb.toString();
6694 }
6695
6696 public void validate() throws org.apache.thrift.TException {
6697
6698
6699 }
6700
6701 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6702 try {
6703 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6704 } catch (org.apache.thrift.TException te) {
6705 throw new java.io.IOException(te);
6706 }
6707 }
6708
6709 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6710 try {
6711 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6712 } catch (org.apache.thrift.TException te) {
6713 throw new java.io.IOException(te);
6714 }
6715 }
6716
6717 private static class createProject_resultStandardSchemeFactory implements SchemeFactory {
6718 public createProject_resultStandardScheme getScheme() {
6719 return new createProject_resultStandardScheme();
6720 }
6721 }
6722
6723 private static class createProject_resultStandardScheme extends StandardScheme<createProject_result> {
6724
6725 public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_result struct) throws org.apache.thrift.TException {
6726 org.apache.thrift.protocol.TField schemeField;
6727 iprot.readStructBegin();
6728 while (true)
6729 {
6730 schemeField = iprot.readFieldBegin();
6731 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6732 break;
6733 }
6734 switch (schemeField.id) {
6735 case 1:
6736 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6737 struct.e = new CentralDogmaException();
6738 struct.e.read(iprot);
6739 struct.setEIsSet(true);
6740 } else {
6741 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6742 }
6743 break;
6744 default:
6745 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6746 }
6747 iprot.readFieldEnd();
6748 }
6749 iprot.readStructEnd();
6750
6751
6752 struct.validate();
6753 }
6754
6755 public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_result struct) throws org.apache.thrift.TException {
6756 struct.validate();
6757
6758 oprot.writeStructBegin(STRUCT_DESC);
6759 if (struct.e != null) {
6760 oprot.writeFieldBegin(E_FIELD_DESC);
6761 struct.e.write(oprot);
6762 oprot.writeFieldEnd();
6763 }
6764 oprot.writeFieldStop();
6765 oprot.writeStructEnd();
6766 }
6767
6768 }
6769
6770 private static class createProject_resultTupleSchemeFactory implements SchemeFactory {
6771 public createProject_resultTupleScheme getScheme() {
6772 return new createProject_resultTupleScheme();
6773 }
6774 }
6775
6776 private static class createProject_resultTupleScheme extends TupleScheme<createProject_result> {
6777
6778 @Override
6779 public void write(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException {
6780 TTupleProtocol oprot = (TTupleProtocol) prot;
6781 BitSet optionals = new BitSet();
6782 if (struct.isSetE()) {
6783 optionals.set(0);
6784 }
6785 oprot.writeBitSet(optionals, 1);
6786 if (struct.isSetE()) {
6787 struct.e.write(oprot);
6788 }
6789 }
6790
6791 @Override
6792 public void read(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException {
6793 TTupleProtocol iprot = (TTupleProtocol) prot;
6794 BitSet incoming = iprot.readBitSet(1);
6795 if (incoming.get(0)) {
6796 struct.e = new CentralDogmaException();
6797 struct.e.read(iprot);
6798 struct.setEIsSet(true);
6799 }
6800 }
6801 }
6802
6803 }
6804
6805 public static class removeProject_args implements org.apache.thrift.TBase<removeProject_args, removeProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeProject_args> {
6806 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_args");
6807
6808 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
6809
6810 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6811 static {
6812 schemes.put(StandardScheme.class, new removeProject_argsStandardSchemeFactory());
6813 schemes.put(TupleScheme.class, new removeProject_argsTupleSchemeFactory());
6814 }
6815
6816 public String name;
6817
6818
6819 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6820 NAME((short)1, "name");
6821
6822 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6823
6824 static {
6825 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6826 byName.put(field.getFieldName(), field);
6827 }
6828 }
6829
6830
6831
6832
6833 public static _Fields findByThriftId(int fieldId) {
6834 switch(fieldId) {
6835 case 1:
6836 return NAME;
6837 default:
6838 return null;
6839 }
6840 }
6841
6842
6843
6844
6845
6846 public static _Fields findByThriftIdOrThrow(int fieldId) {
6847 _Fields fields = findByThriftId(fieldId);
6848 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6849 return fields;
6850 }
6851
6852
6853
6854
6855 public static _Fields findByName(String name) {
6856 return byName.get(name);
6857 }
6858
6859 private final short _thriftId;
6860 private final String _fieldName;
6861
6862 _Fields(short thriftId, String fieldName) {
6863 _thriftId = thriftId;
6864 _fieldName = fieldName;
6865 }
6866
6867 public short getThriftFieldId() {
6868 return _thriftId;
6869 }
6870
6871 public String getFieldName() {
6872 return _fieldName;
6873 }
6874 }
6875
6876
6877 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6878 static {
6879 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6880 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
6881 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6882 metaDataMap = Collections.unmodifiableMap(tmpMap);
6883 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeProject_args.class, metaDataMap);
6884 }
6885
6886 public removeProject_args() {
6887 }
6888
6889 public removeProject_args(
6890 String name)
6891 {
6892 this();
6893 this.name = name;
6894 }
6895
6896
6897
6898
6899 public removeProject_args(removeProject_args other) {
6900 if (other.isSetName()) {
6901 this.name = other.name;
6902 }
6903 }
6904
6905 public removeProject_args deepCopy() {
6906 return new removeProject_args(this);
6907 }
6908
6909 @Override
6910 public void clear() {
6911 this.name = null;
6912 }
6913
6914 public String getName() {
6915 return this.name;
6916 }
6917
6918 public removeProject_args setName(String name) {
6919 this.name = name;
6920 return this;
6921 }
6922
6923 public void unsetName() {
6924 this.name = null;
6925 }
6926
6927
6928 public boolean isSetName() {
6929 return this.name != null;
6930 }
6931
6932 public void setNameIsSet(boolean value) {
6933 if (!value) {
6934 this.name = null;
6935 }
6936 }
6937
6938 public void setFieldValue(_Fields field, Object value) {
6939 switch (field) {
6940 case NAME:
6941 if (value == null) {
6942 unsetName();
6943 } else {
6944 setName((String)value);
6945 }
6946 break;
6947
6948 }
6949 }
6950
6951 public Object getFieldValue(_Fields field) {
6952 switch (field) {
6953 case NAME:
6954 return getName();
6955
6956 }
6957 throw new IllegalStateException();
6958 }
6959
6960
6961 public boolean isSet(_Fields field) {
6962 if (field == null) {
6963 throw new IllegalArgumentException();
6964 }
6965
6966 switch (field) {
6967 case NAME:
6968 return isSetName();
6969 }
6970 throw new IllegalStateException();
6971 }
6972
6973 @Override
6974 public boolean equals(Object that) {
6975 if (that == null)
6976 return false;
6977 if (that instanceof removeProject_args)
6978 return this.equals((removeProject_args)that);
6979 return false;
6980 }
6981
6982 public boolean equals(removeProject_args that) {
6983 if (that == null)
6984 return false;
6985
6986 boolean this_present_name = true && this.isSetName();
6987 boolean that_present_name = true && that.isSetName();
6988 if (this_present_name || that_present_name) {
6989 if (!(this_present_name && that_present_name))
6990 return false;
6991 if (!this.name.equals(that.name))
6992 return false;
6993 }
6994
6995 return true;
6996 }
6997
6998 @Override
6999 public int hashCode() {
7000 List<Object> list = new ArrayList<Object>();
7001
7002 boolean present_name = true && (isSetName());
7003 list.add(present_name);
7004 if (present_name)
7005 list.add(name);
7006
7007 return list.hashCode();
7008 }
7009
7010 @Override
7011 public int compareTo(removeProject_args other) {
7012 if (!getClass().equals(other.getClass())) {
7013 return getClass().getName().compareTo(other.getClass().getName());
7014 }
7015
7016 int lastComparison = 0;
7017
7018 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
7019 if (lastComparison != 0) {
7020 return lastComparison;
7021 }
7022 if (isSetName()) {
7023 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
7024 if (lastComparison != 0) {
7025 return lastComparison;
7026 }
7027 }
7028 return 0;
7029 }
7030
7031 public _Fields fieldForId(int fieldId) {
7032 return _Fields.findByThriftId(fieldId);
7033 }
7034
7035 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7036 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7037 }
7038
7039 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7040 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7041 }
7042
7043 @Override
7044 public String toString() {
7045 StringBuilder sb = new StringBuilder("removeProject_args(");
7046 boolean first = true;
7047
7048 sb.append("name:");
7049 if (this.name == null) {
7050 sb.append("null");
7051 } else {
7052 sb.append(this.name);
7053 }
7054 first = false;
7055 sb.append(")");
7056 return sb.toString();
7057 }
7058
7059 public void validate() throws org.apache.thrift.TException {
7060
7061
7062 }
7063
7064 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7065 try {
7066 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7067 } catch (org.apache.thrift.TException te) {
7068 throw new java.io.IOException(te);
7069 }
7070 }
7071
7072 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7073 try {
7074 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7075 } catch (org.apache.thrift.TException te) {
7076 throw new java.io.IOException(te);
7077 }
7078 }
7079
7080 private static class removeProject_argsStandardSchemeFactory implements SchemeFactory {
7081 public removeProject_argsStandardScheme getScheme() {
7082 return new removeProject_argsStandardScheme();
7083 }
7084 }
7085
7086 private static class removeProject_argsStandardScheme extends StandardScheme<removeProject_args> {
7087
7088 public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_args struct) throws org.apache.thrift.TException {
7089 org.apache.thrift.protocol.TField schemeField;
7090 iprot.readStructBegin();
7091 while (true)
7092 {
7093 schemeField = iprot.readFieldBegin();
7094 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7095 break;
7096 }
7097 switch (schemeField.id) {
7098 case 1:
7099 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7100 struct.name = iprot.readString();
7101 struct.setNameIsSet(true);
7102 } else {
7103 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7104 }
7105 break;
7106 default:
7107 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7108 }
7109 iprot.readFieldEnd();
7110 }
7111 iprot.readStructEnd();
7112
7113
7114 struct.validate();
7115 }
7116
7117 public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_args struct) throws org.apache.thrift.TException {
7118 struct.validate();
7119
7120 oprot.writeStructBegin(STRUCT_DESC);
7121 if (struct.name != null) {
7122 oprot.writeFieldBegin(NAME_FIELD_DESC);
7123 oprot.writeString(struct.name);
7124 oprot.writeFieldEnd();
7125 }
7126 oprot.writeFieldStop();
7127 oprot.writeStructEnd();
7128 }
7129
7130 }
7131
7132 private static class removeProject_argsTupleSchemeFactory implements SchemeFactory {
7133 public removeProject_argsTupleScheme getScheme() {
7134 return new removeProject_argsTupleScheme();
7135 }
7136 }
7137
7138 private static class removeProject_argsTupleScheme extends TupleScheme<removeProject_args> {
7139
7140 @Override
7141 public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException {
7142 TTupleProtocol oprot = (TTupleProtocol) prot;
7143 BitSet optionals = new BitSet();
7144 if (struct.isSetName()) {
7145 optionals.set(0);
7146 }
7147 oprot.writeBitSet(optionals, 1);
7148 if (struct.isSetName()) {
7149 oprot.writeString(struct.name);
7150 }
7151 }
7152
7153 @Override
7154 public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException {
7155 TTupleProtocol iprot = (TTupleProtocol) prot;
7156 BitSet incoming = iprot.readBitSet(1);
7157 if (incoming.get(0)) {
7158 struct.name = iprot.readString();
7159 struct.setNameIsSet(true);
7160 }
7161 }
7162 }
7163
7164 }
7165
7166 public static class removeProject_result implements org.apache.thrift.TBase<removeProject_result, removeProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeProject_result> {
7167 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_result");
7168
7169 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7170
7171 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7172 static {
7173 schemes.put(StandardScheme.class, new removeProject_resultStandardSchemeFactory());
7174 schemes.put(TupleScheme.class, new removeProject_resultTupleSchemeFactory());
7175 }
7176
7177 public CentralDogmaException e;
7178
7179
7180 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7181 E((short)1, "e");
7182
7183 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7184
7185 static {
7186 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7187 byName.put(field.getFieldName(), field);
7188 }
7189 }
7190
7191
7192
7193
7194 public static _Fields findByThriftId(int fieldId) {
7195 switch(fieldId) {
7196 case 1:
7197 return E;
7198 default:
7199 return null;
7200 }
7201 }
7202
7203
7204
7205
7206
7207 public static _Fields findByThriftIdOrThrow(int fieldId) {
7208 _Fields fields = findByThriftId(fieldId);
7209 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7210 return fields;
7211 }
7212
7213
7214
7215
7216 public static _Fields findByName(String name) {
7217 return byName.get(name);
7218 }
7219
7220 private final short _thriftId;
7221 private final String _fieldName;
7222
7223 _Fields(short thriftId, String fieldName) {
7224 _thriftId = thriftId;
7225 _fieldName = fieldName;
7226 }
7227
7228 public short getThriftFieldId() {
7229 return _thriftId;
7230 }
7231
7232 public String getFieldName() {
7233 return _fieldName;
7234 }
7235 }
7236
7237
7238 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7239 static {
7240 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7241 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
7242 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7243 metaDataMap = Collections.unmodifiableMap(tmpMap);
7244 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeProject_result.class, metaDataMap);
7245 }
7246
7247 public removeProject_result() {
7248 }
7249
7250 public removeProject_result(
7251 CentralDogmaException e)
7252 {
7253 this();
7254 this.e = e;
7255 }
7256
7257
7258
7259
7260 public removeProject_result(removeProject_result other) {
7261 if (other.isSetE()) {
7262 this.e = new CentralDogmaException(other.e);
7263 }
7264 }
7265
7266 public removeProject_result deepCopy() {
7267 return new removeProject_result(this);
7268 }
7269
7270 @Override
7271 public void clear() {
7272 this.e = null;
7273 }
7274
7275 public CentralDogmaException getE() {
7276 return this.e;
7277 }
7278
7279 public removeProject_result setE(CentralDogmaException e) {
7280 this.e = e;
7281 return this;
7282 }
7283
7284 public void unsetE() {
7285 this.e = null;
7286 }
7287
7288
7289 public boolean isSetE() {
7290 return this.e != null;
7291 }
7292
7293 public void setEIsSet(boolean value) {
7294 if (!value) {
7295 this.e = null;
7296 }
7297 }
7298
7299 public void setFieldValue(_Fields field, Object value) {
7300 switch (field) {
7301 case E:
7302 if (value == null) {
7303 unsetE();
7304 } else {
7305 setE((CentralDogmaException)value);
7306 }
7307 break;
7308
7309 }
7310 }
7311
7312 public Object getFieldValue(_Fields field) {
7313 switch (field) {
7314 case E:
7315 return getE();
7316
7317 }
7318 throw new IllegalStateException();
7319 }
7320
7321
7322 public boolean isSet(_Fields field) {
7323 if (field == null) {
7324 throw new IllegalArgumentException();
7325 }
7326
7327 switch (field) {
7328 case E:
7329 return isSetE();
7330 }
7331 throw new IllegalStateException();
7332 }
7333
7334 @Override
7335 public boolean equals(Object that) {
7336 if (that == null)
7337 return false;
7338 if (that instanceof removeProject_result)
7339 return this.equals((removeProject_result)that);
7340 return false;
7341 }
7342
7343 public boolean equals(removeProject_result that) {
7344 if (that == null)
7345 return false;
7346
7347 boolean this_present_e = true && this.isSetE();
7348 boolean that_present_e = true && that.isSetE();
7349 if (this_present_e || that_present_e) {
7350 if (!(this_present_e && that_present_e))
7351 return false;
7352 if (!this.e.equals(that.e))
7353 return false;
7354 }
7355
7356 return true;
7357 }
7358
7359 @Override
7360 public int hashCode() {
7361 List<Object> list = new ArrayList<Object>();
7362
7363 boolean present_e = true && (isSetE());
7364 list.add(present_e);
7365 if (present_e)
7366 list.add(e);
7367
7368 return list.hashCode();
7369 }
7370
7371 @Override
7372 public int compareTo(removeProject_result other) {
7373 if (!getClass().equals(other.getClass())) {
7374 return getClass().getName().compareTo(other.getClass().getName());
7375 }
7376
7377 int lastComparison = 0;
7378
7379 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
7380 if (lastComparison != 0) {
7381 return lastComparison;
7382 }
7383 if (isSetE()) {
7384 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
7385 if (lastComparison != 0) {
7386 return lastComparison;
7387 }
7388 }
7389 return 0;
7390 }
7391
7392 public _Fields fieldForId(int fieldId) {
7393 return _Fields.findByThriftId(fieldId);
7394 }
7395
7396 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7397 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7398 }
7399
7400 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7401 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7402 }
7403
7404 @Override
7405 public String toString() {
7406 StringBuilder sb = new StringBuilder("removeProject_result(");
7407 boolean first = true;
7408
7409 sb.append("e:");
7410 if (this.e == null) {
7411 sb.append("null");
7412 } else {
7413 sb.append(this.e);
7414 }
7415 first = false;
7416 sb.append(")");
7417 return sb.toString();
7418 }
7419
7420 public void validate() throws org.apache.thrift.TException {
7421
7422
7423 }
7424
7425 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7426 try {
7427 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7428 } catch (org.apache.thrift.TException te) {
7429 throw new java.io.IOException(te);
7430 }
7431 }
7432
7433 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7434 try {
7435 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7436 } catch (org.apache.thrift.TException te) {
7437 throw new java.io.IOException(te);
7438 }
7439 }
7440
7441 private static class removeProject_resultStandardSchemeFactory implements SchemeFactory {
7442 public removeProject_resultStandardScheme getScheme() {
7443 return new removeProject_resultStandardScheme();
7444 }
7445 }
7446
7447 private static class removeProject_resultStandardScheme extends StandardScheme<removeProject_result> {
7448
7449 public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_result struct) throws org.apache.thrift.TException {
7450 org.apache.thrift.protocol.TField schemeField;
7451 iprot.readStructBegin();
7452 while (true)
7453 {
7454 schemeField = iprot.readFieldBegin();
7455 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7456 break;
7457 }
7458 switch (schemeField.id) {
7459 case 1:
7460 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7461 struct.e = new CentralDogmaException();
7462 struct.e.read(iprot);
7463 struct.setEIsSet(true);
7464 } else {
7465 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7466 }
7467 break;
7468 default:
7469 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7470 }
7471 iprot.readFieldEnd();
7472 }
7473 iprot.readStructEnd();
7474
7475
7476 struct.validate();
7477 }
7478
7479 public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_result struct) throws org.apache.thrift.TException {
7480 struct.validate();
7481
7482 oprot.writeStructBegin(STRUCT_DESC);
7483 if (struct.e != null) {
7484 oprot.writeFieldBegin(E_FIELD_DESC);
7485 struct.e.write(oprot);
7486 oprot.writeFieldEnd();
7487 }
7488 oprot.writeFieldStop();
7489 oprot.writeStructEnd();
7490 }
7491
7492 }
7493
7494 private static class removeProject_resultTupleSchemeFactory implements SchemeFactory {
7495 public removeProject_resultTupleScheme getScheme() {
7496 return new removeProject_resultTupleScheme();
7497 }
7498 }
7499
7500 private static class removeProject_resultTupleScheme extends TupleScheme<removeProject_result> {
7501
7502 @Override
7503 public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException {
7504 TTupleProtocol oprot = (TTupleProtocol) prot;
7505 BitSet optionals = new BitSet();
7506 if (struct.isSetE()) {
7507 optionals.set(0);
7508 }
7509 oprot.writeBitSet(optionals, 1);
7510 if (struct.isSetE()) {
7511 struct.e.write(oprot);
7512 }
7513 }
7514
7515 @Override
7516 public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException {
7517 TTupleProtocol iprot = (TTupleProtocol) prot;
7518 BitSet incoming = iprot.readBitSet(1);
7519 if (incoming.get(0)) {
7520 struct.e = new CentralDogmaException();
7521 struct.e.read(iprot);
7522 struct.setEIsSet(true);
7523 }
7524 }
7525 }
7526
7527 }
7528
7529 public static class purgeProject_args implements org.apache.thrift.TBase<purgeProject_args, purgeProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<purgeProject_args> {
7530 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeProject_args");
7531
7532 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
7533
7534 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7535 static {
7536 schemes.put(StandardScheme.class, new purgeProject_argsStandardSchemeFactory());
7537 schemes.put(TupleScheme.class, new purgeProject_argsTupleSchemeFactory());
7538 }
7539
7540 public String name;
7541
7542
7543 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7544 NAME((short)1, "name");
7545
7546 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7547
7548 static {
7549 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7550 byName.put(field.getFieldName(), field);
7551 }
7552 }
7553
7554
7555
7556
7557 public static _Fields findByThriftId(int fieldId) {
7558 switch(fieldId) {
7559 case 1:
7560 return NAME;
7561 default:
7562 return null;
7563 }
7564 }
7565
7566
7567
7568
7569
7570 public static _Fields findByThriftIdOrThrow(int fieldId) {
7571 _Fields fields = findByThriftId(fieldId);
7572 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7573 return fields;
7574 }
7575
7576
7577
7578
7579 public static _Fields findByName(String name) {
7580 return byName.get(name);
7581 }
7582
7583 private final short _thriftId;
7584 private final String _fieldName;
7585
7586 _Fields(short thriftId, String fieldName) {
7587 _thriftId = thriftId;
7588 _fieldName = fieldName;
7589 }
7590
7591 public short getThriftFieldId() {
7592 return _thriftId;
7593 }
7594
7595 public String getFieldName() {
7596 return _fieldName;
7597 }
7598 }
7599
7600
7601 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7602 static {
7603 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7604 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
7605 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7606 metaDataMap = Collections.unmodifiableMap(tmpMap);
7607 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(purgeProject_args.class, metaDataMap);
7608 }
7609
7610 public purgeProject_args() {
7611 }
7612
7613 public purgeProject_args(
7614 String name)
7615 {
7616 this();
7617 this.name = name;
7618 }
7619
7620
7621
7622
7623 public purgeProject_args(purgeProject_args other) {
7624 if (other.isSetName()) {
7625 this.name = other.name;
7626 }
7627 }
7628
7629 public purgeProject_args deepCopy() {
7630 return new purgeProject_args(this);
7631 }
7632
7633 @Override
7634 public void clear() {
7635 this.name = null;
7636 }
7637
7638 public String getName() {
7639 return this.name;
7640 }
7641
7642 public purgeProject_args setName(String name) {
7643 this.name = name;
7644 return this;
7645 }
7646
7647 public void unsetName() {
7648 this.name = null;
7649 }
7650
7651
7652 public boolean isSetName() {
7653 return this.name != null;
7654 }
7655
7656 public void setNameIsSet(boolean value) {
7657 if (!value) {
7658 this.name = null;
7659 }
7660 }
7661
7662 public void setFieldValue(_Fields field, Object value) {
7663 switch (field) {
7664 case NAME:
7665 if (value == null) {
7666 unsetName();
7667 } else {
7668 setName((String)value);
7669 }
7670 break;
7671
7672 }
7673 }
7674
7675 public Object getFieldValue(_Fields field) {
7676 switch (field) {
7677 case NAME:
7678 return getName();
7679
7680 }
7681 throw new IllegalStateException();
7682 }
7683
7684
7685 public boolean isSet(_Fields field) {
7686 if (field == null) {
7687 throw new IllegalArgumentException();
7688 }
7689
7690 switch (field) {
7691 case NAME:
7692 return isSetName();
7693 }
7694 throw new IllegalStateException();
7695 }
7696
7697 @Override
7698 public boolean equals(Object that) {
7699 if (that == null)
7700 return false;
7701 if (that instanceof purgeProject_args)
7702 return this.equals((purgeProject_args)that);
7703 return false;
7704 }
7705
7706 public boolean equals(purgeProject_args that) {
7707 if (that == null)
7708 return false;
7709
7710 boolean this_present_name = true && this.isSetName();
7711 boolean that_present_name = true && that.isSetName();
7712 if (this_present_name || that_present_name) {
7713 if (!(this_present_name && that_present_name))
7714 return false;
7715 if (!this.name.equals(that.name))
7716 return false;
7717 }
7718
7719 return true;
7720 }
7721
7722 @Override
7723 public int hashCode() {
7724 List<Object> list = new ArrayList<Object>();
7725
7726 boolean present_name = true && (isSetName());
7727 list.add(present_name);
7728 if (present_name)
7729 list.add(name);
7730
7731 return list.hashCode();
7732 }
7733
7734 @Override
7735 public int compareTo(purgeProject_args other) {
7736 if (!getClass().equals(other.getClass())) {
7737 return getClass().getName().compareTo(other.getClass().getName());
7738 }
7739
7740 int lastComparison = 0;
7741
7742 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
7743 if (lastComparison != 0) {
7744 return lastComparison;
7745 }
7746 if (isSetName()) {
7747 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
7748 if (lastComparison != 0) {
7749 return lastComparison;
7750 }
7751 }
7752 return 0;
7753 }
7754
7755 public _Fields fieldForId(int fieldId) {
7756 return _Fields.findByThriftId(fieldId);
7757 }
7758
7759 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7760 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7761 }
7762
7763 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7764 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7765 }
7766
7767 @Override
7768 public String toString() {
7769 StringBuilder sb = new StringBuilder("purgeProject_args(");
7770 boolean first = true;
7771
7772 sb.append("name:");
7773 if (this.name == null) {
7774 sb.append("null");
7775 } else {
7776 sb.append(this.name);
7777 }
7778 first = false;
7779 sb.append(")");
7780 return sb.toString();
7781 }
7782
7783 public void validate() throws org.apache.thrift.TException {
7784
7785
7786 }
7787
7788 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7789 try {
7790 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7791 } catch (org.apache.thrift.TException te) {
7792 throw new java.io.IOException(te);
7793 }
7794 }
7795
7796 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7797 try {
7798 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7799 } catch (org.apache.thrift.TException te) {
7800 throw new java.io.IOException(te);
7801 }
7802 }
7803
7804 private static class purgeProject_argsStandardSchemeFactory implements SchemeFactory {
7805 public purgeProject_argsStandardScheme getScheme() {
7806 return new purgeProject_argsStandardScheme();
7807 }
7808 }
7809
7810 private static class purgeProject_argsStandardScheme extends StandardScheme<purgeProject_args> {
7811
7812 public void read(org.apache.thrift.protocol.TProtocol iprot, purgeProject_args struct) throws org.apache.thrift.TException {
7813 org.apache.thrift.protocol.TField schemeField;
7814 iprot.readStructBegin();
7815 while (true)
7816 {
7817 schemeField = iprot.readFieldBegin();
7818 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7819 break;
7820 }
7821 switch (schemeField.id) {
7822 case 1:
7823 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7824 struct.name = iprot.readString();
7825 struct.setNameIsSet(true);
7826 } else {
7827 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7828 }
7829 break;
7830 default:
7831 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7832 }
7833 iprot.readFieldEnd();
7834 }
7835 iprot.readStructEnd();
7836
7837
7838 struct.validate();
7839 }
7840
7841 public void write(org.apache.thrift.protocol.TProtocol oprot, purgeProject_args struct) throws org.apache.thrift.TException {
7842 struct.validate();
7843
7844 oprot.writeStructBegin(STRUCT_DESC);
7845 if (struct.name != null) {
7846 oprot.writeFieldBegin(NAME_FIELD_DESC);
7847 oprot.writeString(struct.name);
7848 oprot.writeFieldEnd();
7849 }
7850 oprot.writeFieldStop();
7851 oprot.writeStructEnd();
7852 }
7853
7854 }
7855
7856 private static class purgeProject_argsTupleSchemeFactory implements SchemeFactory {
7857 public purgeProject_argsTupleScheme getScheme() {
7858 return new purgeProject_argsTupleScheme();
7859 }
7860 }
7861
7862 private static class purgeProject_argsTupleScheme extends TupleScheme<purgeProject_args> {
7863
7864 @Override
7865 public void write(org.apache.thrift.protocol.TProtocol prot, purgeProject_args struct) throws org.apache.thrift.TException {
7866 TTupleProtocol oprot = (TTupleProtocol) prot;
7867 BitSet optionals = new BitSet();
7868 if (struct.isSetName()) {
7869 optionals.set(0);
7870 }
7871 oprot.writeBitSet(optionals, 1);
7872 if (struct.isSetName()) {
7873 oprot.writeString(struct.name);
7874 }
7875 }
7876
7877 @Override
7878 public void read(org.apache.thrift.protocol.TProtocol prot, purgeProject_args struct) throws org.apache.thrift.TException {
7879 TTupleProtocol iprot = (TTupleProtocol) prot;
7880 BitSet incoming = iprot.readBitSet(1);
7881 if (incoming.get(0)) {
7882 struct.name = iprot.readString();
7883 struct.setNameIsSet(true);
7884 }
7885 }
7886 }
7887
7888 }
7889
7890 public static class purgeProject_result implements org.apache.thrift.TBase<purgeProject_result, purgeProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<purgeProject_result> {
7891 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeProject_result");
7892
7893 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7894
7895 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7896 static {
7897 schemes.put(StandardScheme.class, new purgeProject_resultStandardSchemeFactory());
7898 schemes.put(TupleScheme.class, new purgeProject_resultTupleSchemeFactory());
7899 }
7900
7901 public CentralDogmaException e;
7902
7903
7904 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7905 E((short)1, "e");
7906
7907 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7908
7909 static {
7910 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7911 byName.put(field.getFieldName(), field);
7912 }
7913 }
7914
7915
7916
7917
7918 public static _Fields findByThriftId(int fieldId) {
7919 switch(fieldId) {
7920 case 1:
7921 return E;
7922 default:
7923 return null;
7924 }
7925 }
7926
7927
7928
7929
7930
7931 public static _Fields findByThriftIdOrThrow(int fieldId) {
7932 _Fields fields = findByThriftId(fieldId);
7933 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7934 return fields;
7935 }
7936
7937
7938
7939
7940 public static _Fields findByName(String name) {
7941 return byName.get(name);
7942 }
7943
7944 private final short _thriftId;
7945 private final String _fieldName;
7946
7947 _Fields(short thriftId, String fieldName) {
7948 _thriftId = thriftId;
7949 _fieldName = fieldName;
7950 }
7951
7952 public short getThriftFieldId() {
7953 return _thriftId;
7954 }
7955
7956 public String getFieldName() {
7957 return _fieldName;
7958 }
7959 }
7960
7961
7962 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7963 static {
7964 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7965 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
7966 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7967 metaDataMap = Collections.unmodifiableMap(tmpMap);
7968 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(purgeProject_result.class, metaDataMap);
7969 }
7970
7971 public purgeProject_result() {
7972 }
7973
7974 public purgeProject_result(
7975 CentralDogmaException e)
7976 {
7977 this();
7978 this.e = e;
7979 }
7980
7981
7982
7983
7984 public purgeProject_result(purgeProject_result other) {
7985 if (other.isSetE()) {
7986 this.e = new CentralDogmaException(other.e);
7987 }
7988 }
7989
7990 public purgeProject_result deepCopy() {
7991 return new purgeProject_result(this);
7992 }
7993
7994 @Override
7995 public void clear() {
7996 this.e = null;
7997 }
7998
7999 public CentralDogmaException getE() {
8000 return this.e;
8001 }
8002
8003 public purgeProject_result setE(CentralDogmaException e) {
8004 this.e = e;
8005 return this;
8006 }
8007
8008 public void unsetE() {
8009 this.e = null;
8010 }
8011
8012
8013 public boolean isSetE() {
8014 return this.e != null;
8015 }
8016
8017 public void setEIsSet(boolean value) {
8018 if (!value) {
8019 this.e = null;
8020 }
8021 }
8022
8023 public void setFieldValue(_Fields field, Object value) {
8024 switch (field) {
8025 case E:
8026 if (value == null) {
8027 unsetE();
8028 } else {
8029 setE((CentralDogmaException)value);
8030 }
8031 break;
8032
8033 }
8034 }
8035
8036 public Object getFieldValue(_Fields field) {
8037 switch (field) {
8038 case E:
8039 return getE();
8040
8041 }
8042 throw new IllegalStateException();
8043 }
8044
8045
8046 public boolean isSet(_Fields field) {
8047 if (field == null) {
8048 throw new IllegalArgumentException();
8049 }
8050
8051 switch (field) {
8052 case E:
8053 return isSetE();
8054 }
8055 throw new IllegalStateException();
8056 }
8057
8058 @Override
8059 public boolean equals(Object that) {
8060 if (that == null)
8061 return false;
8062 if (that instanceof purgeProject_result)
8063 return this.equals((purgeProject_result)that);
8064 return false;
8065 }
8066
8067 public boolean equals(purgeProject_result that) {
8068 if (that == null)
8069 return false;
8070
8071 boolean this_present_e = true && this.isSetE();
8072 boolean that_present_e = true && that.isSetE();
8073 if (this_present_e || that_present_e) {
8074 if (!(this_present_e && that_present_e))
8075 return false;
8076 if (!this.e.equals(that.e))
8077 return false;
8078 }
8079
8080 return true;
8081 }
8082
8083 @Override
8084 public int hashCode() {
8085 List<Object> list = new ArrayList<Object>();
8086
8087 boolean present_e = true && (isSetE());
8088 list.add(present_e);
8089 if (present_e)
8090 list.add(e);
8091
8092 return list.hashCode();
8093 }
8094
8095 @Override
8096 public int compareTo(purgeProject_result other) {
8097 if (!getClass().equals(other.getClass())) {
8098 return getClass().getName().compareTo(other.getClass().getName());
8099 }
8100
8101 int lastComparison = 0;
8102
8103 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
8104 if (lastComparison != 0) {
8105 return lastComparison;
8106 }
8107 if (isSetE()) {
8108 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
8109 if (lastComparison != 0) {
8110 return lastComparison;
8111 }
8112 }
8113 return 0;
8114 }
8115
8116 public _Fields fieldForId(int fieldId) {
8117 return _Fields.findByThriftId(fieldId);
8118 }
8119
8120 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8121 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8122 }
8123
8124 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8125 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8126 }
8127
8128 @Override
8129 public String toString() {
8130 StringBuilder sb = new StringBuilder("purgeProject_result(");
8131 boolean first = true;
8132
8133 sb.append("e:");
8134 if (this.e == null) {
8135 sb.append("null");
8136 } else {
8137 sb.append(this.e);
8138 }
8139 first = false;
8140 sb.append(")");
8141 return sb.toString();
8142 }
8143
8144 public void validate() throws org.apache.thrift.TException {
8145
8146
8147 }
8148
8149 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8150 try {
8151 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8152 } catch (org.apache.thrift.TException te) {
8153 throw new java.io.IOException(te);
8154 }
8155 }
8156
8157 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8158 try {
8159 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8160 } catch (org.apache.thrift.TException te) {
8161 throw new java.io.IOException(te);
8162 }
8163 }
8164
8165 private static class purgeProject_resultStandardSchemeFactory implements SchemeFactory {
8166 public purgeProject_resultStandardScheme getScheme() {
8167 return new purgeProject_resultStandardScheme();
8168 }
8169 }
8170
8171 private static class purgeProject_resultStandardScheme extends StandardScheme<purgeProject_result> {
8172
8173 public void read(org.apache.thrift.protocol.TProtocol iprot, purgeProject_result struct) throws org.apache.thrift.TException {
8174 org.apache.thrift.protocol.TField schemeField;
8175 iprot.readStructBegin();
8176 while (true)
8177 {
8178 schemeField = iprot.readFieldBegin();
8179 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8180 break;
8181 }
8182 switch (schemeField.id) {
8183 case 1:
8184 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8185 struct.e = new CentralDogmaException();
8186 struct.e.read(iprot);
8187 struct.setEIsSet(true);
8188 } else {
8189 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8190 }
8191 break;
8192 default:
8193 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8194 }
8195 iprot.readFieldEnd();
8196 }
8197 iprot.readStructEnd();
8198
8199
8200 struct.validate();
8201 }
8202
8203 public void write(org.apache.thrift.protocol.TProtocol oprot, purgeProject_result struct) throws org.apache.thrift.TException {
8204 struct.validate();
8205
8206 oprot.writeStructBegin(STRUCT_DESC);
8207 if (struct.e != null) {
8208 oprot.writeFieldBegin(E_FIELD_DESC);
8209 struct.e.write(oprot);
8210 oprot.writeFieldEnd();
8211 }
8212 oprot.writeFieldStop();
8213 oprot.writeStructEnd();
8214 }
8215
8216 }
8217
8218 private static class purgeProject_resultTupleSchemeFactory implements SchemeFactory {
8219 public purgeProject_resultTupleScheme getScheme() {
8220 return new purgeProject_resultTupleScheme();
8221 }
8222 }
8223
8224 private static class purgeProject_resultTupleScheme extends TupleScheme<purgeProject_result> {
8225
8226 @Override
8227 public void write(org.apache.thrift.protocol.TProtocol prot, purgeProject_result struct) throws org.apache.thrift.TException {
8228 TTupleProtocol oprot = (TTupleProtocol) prot;
8229 BitSet optionals = new BitSet();
8230 if (struct.isSetE()) {
8231 optionals.set(0);
8232 }
8233 oprot.writeBitSet(optionals, 1);
8234 if (struct.isSetE()) {
8235 struct.e.write(oprot);
8236 }
8237 }
8238
8239 @Override
8240 public void read(org.apache.thrift.protocol.TProtocol prot, purgeProject_result struct) throws org.apache.thrift.TException {
8241 TTupleProtocol iprot = (TTupleProtocol) prot;
8242 BitSet incoming = iprot.readBitSet(1);
8243 if (incoming.get(0)) {
8244 struct.e = new CentralDogmaException();
8245 struct.e.read(iprot);
8246 struct.setEIsSet(true);
8247 }
8248 }
8249 }
8250
8251 }
8252
8253 public static class unremoveProject_args implements org.apache.thrift.TBase<unremoveProject_args, unremoveProject_args._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveProject_args> {
8254 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_args");
8255
8256 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
8257
8258 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8259 static {
8260 schemes.put(StandardScheme.class, new unremoveProject_argsStandardSchemeFactory());
8261 schemes.put(TupleScheme.class, new unremoveProject_argsTupleSchemeFactory());
8262 }
8263
8264 public String name;
8265
8266
8267 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8268 NAME((short)1, "name");
8269
8270 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8271
8272 static {
8273 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8274 byName.put(field.getFieldName(), field);
8275 }
8276 }
8277
8278
8279
8280
8281 public static _Fields findByThriftId(int fieldId) {
8282 switch(fieldId) {
8283 case 1:
8284 return NAME;
8285 default:
8286 return null;
8287 }
8288 }
8289
8290
8291
8292
8293
8294 public static _Fields findByThriftIdOrThrow(int fieldId) {
8295 _Fields fields = findByThriftId(fieldId);
8296 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8297 return fields;
8298 }
8299
8300
8301
8302
8303 public static _Fields findByName(String name) {
8304 return byName.get(name);
8305 }
8306
8307 private final short _thriftId;
8308 private final String _fieldName;
8309
8310 _Fields(short thriftId, String fieldName) {
8311 _thriftId = thriftId;
8312 _fieldName = fieldName;
8313 }
8314
8315 public short getThriftFieldId() {
8316 return _thriftId;
8317 }
8318
8319 public String getFieldName() {
8320 return _fieldName;
8321 }
8322 }
8323
8324
8325 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8326 static {
8327 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8328 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
8329 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8330 metaDataMap = Collections.unmodifiableMap(tmpMap);
8331 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveProject_args.class, metaDataMap);
8332 }
8333
8334 public unremoveProject_args() {
8335 }
8336
8337 public unremoveProject_args(
8338 String name)
8339 {
8340 this();
8341 this.name = name;
8342 }
8343
8344
8345
8346
8347 public unremoveProject_args(unremoveProject_args other) {
8348 if (other.isSetName()) {
8349 this.name = other.name;
8350 }
8351 }
8352
8353 public unremoveProject_args deepCopy() {
8354 return new unremoveProject_args(this);
8355 }
8356
8357 @Override
8358 public void clear() {
8359 this.name = null;
8360 }
8361
8362 public String getName() {
8363 return this.name;
8364 }
8365
8366 public unremoveProject_args setName(String name) {
8367 this.name = name;
8368 return this;
8369 }
8370
8371 public void unsetName() {
8372 this.name = null;
8373 }
8374
8375
8376 public boolean isSetName() {
8377 return this.name != null;
8378 }
8379
8380 public void setNameIsSet(boolean value) {
8381 if (!value) {
8382 this.name = null;
8383 }
8384 }
8385
8386 public void setFieldValue(_Fields field, Object value) {
8387 switch (field) {
8388 case NAME:
8389 if (value == null) {
8390 unsetName();
8391 } else {
8392 setName((String)value);
8393 }
8394 break;
8395
8396 }
8397 }
8398
8399 public Object getFieldValue(_Fields field) {
8400 switch (field) {
8401 case NAME:
8402 return getName();
8403
8404 }
8405 throw new IllegalStateException();
8406 }
8407
8408
8409 public boolean isSet(_Fields field) {
8410 if (field == null) {
8411 throw new IllegalArgumentException();
8412 }
8413
8414 switch (field) {
8415 case NAME:
8416 return isSetName();
8417 }
8418 throw new IllegalStateException();
8419 }
8420
8421 @Override
8422 public boolean equals(Object that) {
8423 if (that == null)
8424 return false;
8425 if (that instanceof unremoveProject_args)
8426 return this.equals((unremoveProject_args)that);
8427 return false;
8428 }
8429
8430 public boolean equals(unremoveProject_args that) {
8431 if (that == null)
8432 return false;
8433
8434 boolean this_present_name = true && this.isSetName();
8435 boolean that_present_name = true && that.isSetName();
8436 if (this_present_name || that_present_name) {
8437 if (!(this_present_name && that_present_name))
8438 return false;
8439 if (!this.name.equals(that.name))
8440 return false;
8441 }
8442
8443 return true;
8444 }
8445
8446 @Override
8447 public int hashCode() {
8448 List<Object> list = new ArrayList<Object>();
8449
8450 boolean present_name = true && (isSetName());
8451 list.add(present_name);
8452 if (present_name)
8453 list.add(name);
8454
8455 return list.hashCode();
8456 }
8457
8458 @Override
8459 public int compareTo(unremoveProject_args other) {
8460 if (!getClass().equals(other.getClass())) {
8461 return getClass().getName().compareTo(other.getClass().getName());
8462 }
8463
8464 int lastComparison = 0;
8465
8466 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
8467 if (lastComparison != 0) {
8468 return lastComparison;
8469 }
8470 if (isSetName()) {
8471 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
8472 if (lastComparison != 0) {
8473 return lastComparison;
8474 }
8475 }
8476 return 0;
8477 }
8478
8479 public _Fields fieldForId(int fieldId) {
8480 return _Fields.findByThriftId(fieldId);
8481 }
8482
8483 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8484 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8485 }
8486
8487 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8488 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8489 }
8490
8491 @Override
8492 public String toString() {
8493 StringBuilder sb = new StringBuilder("unremoveProject_args(");
8494 boolean first = true;
8495
8496 sb.append("name:");
8497 if (this.name == null) {
8498 sb.append("null");
8499 } else {
8500 sb.append(this.name);
8501 }
8502 first = false;
8503 sb.append(")");
8504 return sb.toString();
8505 }
8506
8507 public void validate() throws org.apache.thrift.TException {
8508
8509
8510 }
8511
8512 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8513 try {
8514 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8515 } catch (org.apache.thrift.TException te) {
8516 throw new java.io.IOException(te);
8517 }
8518 }
8519
8520 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8521 try {
8522 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8523 } catch (org.apache.thrift.TException te) {
8524 throw new java.io.IOException(te);
8525 }
8526 }
8527
8528 private static class unremoveProject_argsStandardSchemeFactory implements SchemeFactory {
8529 public unremoveProject_argsStandardScheme getScheme() {
8530 return new unremoveProject_argsStandardScheme();
8531 }
8532 }
8533
8534 private static class unremoveProject_argsStandardScheme extends StandardScheme<unremoveProject_args> {
8535
8536 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_args struct) throws org.apache.thrift.TException {
8537 org.apache.thrift.protocol.TField schemeField;
8538 iprot.readStructBegin();
8539 while (true)
8540 {
8541 schemeField = iprot.readFieldBegin();
8542 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8543 break;
8544 }
8545 switch (schemeField.id) {
8546 case 1:
8547 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8548 struct.name = iprot.readString();
8549 struct.setNameIsSet(true);
8550 } else {
8551 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8552 }
8553 break;
8554 default:
8555 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8556 }
8557 iprot.readFieldEnd();
8558 }
8559 iprot.readStructEnd();
8560
8561
8562 struct.validate();
8563 }
8564
8565 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_args struct) throws org.apache.thrift.TException {
8566 struct.validate();
8567
8568 oprot.writeStructBegin(STRUCT_DESC);
8569 if (struct.name != null) {
8570 oprot.writeFieldBegin(NAME_FIELD_DESC);
8571 oprot.writeString(struct.name);
8572 oprot.writeFieldEnd();
8573 }
8574 oprot.writeFieldStop();
8575 oprot.writeStructEnd();
8576 }
8577
8578 }
8579
8580 private static class unremoveProject_argsTupleSchemeFactory implements SchemeFactory {
8581 public unremoveProject_argsTupleScheme getScheme() {
8582 return new unremoveProject_argsTupleScheme();
8583 }
8584 }
8585
8586 private static class unremoveProject_argsTupleScheme extends TupleScheme<unremoveProject_args> {
8587
8588 @Override
8589 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException {
8590 TTupleProtocol oprot = (TTupleProtocol) prot;
8591 BitSet optionals = new BitSet();
8592 if (struct.isSetName()) {
8593 optionals.set(0);
8594 }
8595 oprot.writeBitSet(optionals, 1);
8596 if (struct.isSetName()) {
8597 oprot.writeString(struct.name);
8598 }
8599 }
8600
8601 @Override
8602 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException {
8603 TTupleProtocol iprot = (TTupleProtocol) prot;
8604 BitSet incoming = iprot.readBitSet(1);
8605 if (incoming.get(0)) {
8606 struct.name = iprot.readString();
8607 struct.setNameIsSet(true);
8608 }
8609 }
8610 }
8611
8612 }
8613
8614 public static class unremoveProject_result implements org.apache.thrift.TBase<unremoveProject_result, unremoveProject_result._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveProject_result> {
8615 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_result");
8616
8617 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8618
8619 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8620 static {
8621 schemes.put(StandardScheme.class, new unremoveProject_resultStandardSchemeFactory());
8622 schemes.put(TupleScheme.class, new unremoveProject_resultTupleSchemeFactory());
8623 }
8624
8625 public CentralDogmaException e;
8626
8627
8628 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8629 E((short)1, "e");
8630
8631 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8632
8633 static {
8634 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8635 byName.put(field.getFieldName(), field);
8636 }
8637 }
8638
8639
8640
8641
8642 public static _Fields findByThriftId(int fieldId) {
8643 switch(fieldId) {
8644 case 1:
8645 return E;
8646 default:
8647 return null;
8648 }
8649 }
8650
8651
8652
8653
8654
8655 public static _Fields findByThriftIdOrThrow(int fieldId) {
8656 _Fields fields = findByThriftId(fieldId);
8657 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8658 return fields;
8659 }
8660
8661
8662
8663
8664 public static _Fields findByName(String name) {
8665 return byName.get(name);
8666 }
8667
8668 private final short _thriftId;
8669 private final String _fieldName;
8670
8671 _Fields(short thriftId, String fieldName) {
8672 _thriftId = thriftId;
8673 _fieldName = fieldName;
8674 }
8675
8676 public short getThriftFieldId() {
8677 return _thriftId;
8678 }
8679
8680 public String getFieldName() {
8681 return _fieldName;
8682 }
8683 }
8684
8685
8686 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8687 static {
8688 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8689 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
8690 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8691 metaDataMap = Collections.unmodifiableMap(tmpMap);
8692 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveProject_result.class, metaDataMap);
8693 }
8694
8695 public unremoveProject_result() {
8696 }
8697
8698 public unremoveProject_result(
8699 CentralDogmaException e)
8700 {
8701 this();
8702 this.e = e;
8703 }
8704
8705
8706
8707
8708 public unremoveProject_result(unremoveProject_result other) {
8709 if (other.isSetE()) {
8710 this.e = new CentralDogmaException(other.e);
8711 }
8712 }
8713
8714 public unremoveProject_result deepCopy() {
8715 return new unremoveProject_result(this);
8716 }
8717
8718 @Override
8719 public void clear() {
8720 this.e = null;
8721 }
8722
8723 public CentralDogmaException getE() {
8724 return this.e;
8725 }
8726
8727 public unremoveProject_result setE(CentralDogmaException e) {
8728 this.e = e;
8729 return this;
8730 }
8731
8732 public void unsetE() {
8733 this.e = null;
8734 }
8735
8736
8737 public boolean isSetE() {
8738 return this.e != null;
8739 }
8740
8741 public void setEIsSet(boolean value) {
8742 if (!value) {
8743 this.e = null;
8744 }
8745 }
8746
8747 public void setFieldValue(_Fields field, Object value) {
8748 switch (field) {
8749 case E:
8750 if (value == null) {
8751 unsetE();
8752 } else {
8753 setE((CentralDogmaException)value);
8754 }
8755 break;
8756
8757 }
8758 }
8759
8760 public Object getFieldValue(_Fields field) {
8761 switch (field) {
8762 case E:
8763 return getE();
8764
8765 }
8766 throw new IllegalStateException();
8767 }
8768
8769
8770 public boolean isSet(_Fields field) {
8771 if (field == null) {
8772 throw new IllegalArgumentException();
8773 }
8774
8775 switch (field) {
8776 case E:
8777 return isSetE();
8778 }
8779 throw new IllegalStateException();
8780 }
8781
8782 @Override
8783 public boolean equals(Object that) {
8784 if (that == null)
8785 return false;
8786 if (that instanceof unremoveProject_result)
8787 return this.equals((unremoveProject_result)that);
8788 return false;
8789 }
8790
8791 public boolean equals(unremoveProject_result that) {
8792 if (that == null)
8793 return false;
8794
8795 boolean this_present_e = true && this.isSetE();
8796 boolean that_present_e = true && that.isSetE();
8797 if (this_present_e || that_present_e) {
8798 if (!(this_present_e && that_present_e))
8799 return false;
8800 if (!this.e.equals(that.e))
8801 return false;
8802 }
8803
8804 return true;
8805 }
8806
8807 @Override
8808 public int hashCode() {
8809 List<Object> list = new ArrayList<Object>();
8810
8811 boolean present_e = true && (isSetE());
8812 list.add(present_e);
8813 if (present_e)
8814 list.add(e);
8815
8816 return list.hashCode();
8817 }
8818
8819 @Override
8820 public int compareTo(unremoveProject_result other) {
8821 if (!getClass().equals(other.getClass())) {
8822 return getClass().getName().compareTo(other.getClass().getName());
8823 }
8824
8825 int lastComparison = 0;
8826
8827 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
8828 if (lastComparison != 0) {
8829 return lastComparison;
8830 }
8831 if (isSetE()) {
8832 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
8833 if (lastComparison != 0) {
8834 return lastComparison;
8835 }
8836 }
8837 return 0;
8838 }
8839
8840 public _Fields fieldForId(int fieldId) {
8841 return _Fields.findByThriftId(fieldId);
8842 }
8843
8844 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8845 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8846 }
8847
8848 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8849 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8850 }
8851
8852 @Override
8853 public String toString() {
8854 StringBuilder sb = new StringBuilder("unremoveProject_result(");
8855 boolean first = true;
8856
8857 sb.append("e:");
8858 if (this.e == null) {
8859 sb.append("null");
8860 } else {
8861 sb.append(this.e);
8862 }
8863 first = false;
8864 sb.append(")");
8865 return sb.toString();
8866 }
8867
8868 public void validate() throws org.apache.thrift.TException {
8869
8870
8871 }
8872
8873 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8874 try {
8875 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8876 } catch (org.apache.thrift.TException te) {
8877 throw new java.io.IOException(te);
8878 }
8879 }
8880
8881 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8882 try {
8883 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8884 } catch (org.apache.thrift.TException te) {
8885 throw new java.io.IOException(te);
8886 }
8887 }
8888
8889 private static class unremoveProject_resultStandardSchemeFactory implements SchemeFactory {
8890 public unremoveProject_resultStandardScheme getScheme() {
8891 return new unremoveProject_resultStandardScheme();
8892 }
8893 }
8894
8895 private static class unremoveProject_resultStandardScheme extends StandardScheme<unremoveProject_result> {
8896
8897 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_result struct) throws org.apache.thrift.TException {
8898 org.apache.thrift.protocol.TField schemeField;
8899 iprot.readStructBegin();
8900 while (true)
8901 {
8902 schemeField = iprot.readFieldBegin();
8903 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8904 break;
8905 }
8906 switch (schemeField.id) {
8907 case 1:
8908 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8909 struct.e = new CentralDogmaException();
8910 struct.e.read(iprot);
8911 struct.setEIsSet(true);
8912 } else {
8913 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8914 }
8915 break;
8916 default:
8917 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8918 }
8919 iprot.readFieldEnd();
8920 }
8921 iprot.readStructEnd();
8922
8923
8924 struct.validate();
8925 }
8926
8927 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_result struct) throws org.apache.thrift.TException {
8928 struct.validate();
8929
8930 oprot.writeStructBegin(STRUCT_DESC);
8931 if (struct.e != null) {
8932 oprot.writeFieldBegin(E_FIELD_DESC);
8933 struct.e.write(oprot);
8934 oprot.writeFieldEnd();
8935 }
8936 oprot.writeFieldStop();
8937 oprot.writeStructEnd();
8938 }
8939
8940 }
8941
8942 private static class unremoveProject_resultTupleSchemeFactory implements SchemeFactory {
8943 public unremoveProject_resultTupleScheme getScheme() {
8944 return new unremoveProject_resultTupleScheme();
8945 }
8946 }
8947
8948 private static class unremoveProject_resultTupleScheme extends TupleScheme<unremoveProject_result> {
8949
8950 @Override
8951 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException {
8952 TTupleProtocol oprot = (TTupleProtocol) prot;
8953 BitSet optionals = new BitSet();
8954 if (struct.isSetE()) {
8955 optionals.set(0);
8956 }
8957 oprot.writeBitSet(optionals, 1);
8958 if (struct.isSetE()) {
8959 struct.e.write(oprot);
8960 }
8961 }
8962
8963 @Override
8964 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException {
8965 TTupleProtocol iprot = (TTupleProtocol) prot;
8966 BitSet incoming = iprot.readBitSet(1);
8967 if (incoming.get(0)) {
8968 struct.e = new CentralDogmaException();
8969 struct.e.read(iprot);
8970 struct.setEIsSet(true);
8971 }
8972 }
8973 }
8974
8975 }
8976
8977 public static class listProjects_args implements org.apache.thrift.TBase<listProjects_args, listProjects_args._Fields>, java.io.Serializable, Cloneable, Comparable<listProjects_args> {
8978 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_args");
8979
8980
8981 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8982 static {
8983 schemes.put(StandardScheme.class, new listProjects_argsStandardSchemeFactory());
8984 schemes.put(TupleScheme.class, new listProjects_argsTupleSchemeFactory());
8985 }
8986
8987
8988
8989 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8990 ;
8991
8992 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8993
8994 static {
8995 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8996 byName.put(field.getFieldName(), field);
8997 }
8998 }
8999
9000
9001
9002
9003 public static _Fields findByThriftId(int fieldId) {
9004 switch(fieldId) {
9005 default:
9006 return null;
9007 }
9008 }
9009
9010
9011
9012
9013
9014 public static _Fields findByThriftIdOrThrow(int fieldId) {
9015 _Fields fields = findByThriftId(fieldId);
9016 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9017 return fields;
9018 }
9019
9020
9021
9022
9023 public static _Fields findByName(String name) {
9024 return byName.get(name);
9025 }
9026
9027 private final short _thriftId;
9028 private final String _fieldName;
9029
9030 _Fields(short thriftId, String fieldName) {
9031 _thriftId = thriftId;
9032 _fieldName = fieldName;
9033 }
9034
9035 public short getThriftFieldId() {
9036 return _thriftId;
9037 }
9038
9039 public String getFieldName() {
9040 return _fieldName;
9041 }
9042 }
9043 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9044 static {
9045 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9046 metaDataMap = Collections.unmodifiableMap(tmpMap);
9047 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listProjects_args.class, metaDataMap);
9048 }
9049
9050 public listProjects_args() {
9051 }
9052
9053
9054
9055
9056 public listProjects_args(listProjects_args other) {
9057 }
9058
9059 public listProjects_args deepCopy() {
9060 return new listProjects_args(this);
9061 }
9062
9063 @Override
9064 public void clear() {
9065 }
9066
9067 public void setFieldValue(_Fields field, Object value) {
9068 switch (field) {
9069 }
9070 }
9071
9072 public Object getFieldValue(_Fields field) {
9073 switch (field) {
9074 }
9075 throw new IllegalStateException();
9076 }
9077
9078
9079 public boolean isSet(_Fields field) {
9080 if (field == null) {
9081 throw new IllegalArgumentException();
9082 }
9083
9084 switch (field) {
9085 }
9086 throw new IllegalStateException();
9087 }
9088
9089 @Override
9090 public boolean equals(Object that) {
9091 if (that == null)
9092 return false;
9093 if (that instanceof listProjects_args)
9094 return this.equals((listProjects_args)that);
9095 return false;
9096 }
9097
9098 public boolean equals(listProjects_args that) {
9099 if (that == null)
9100 return false;
9101
9102 return true;
9103 }
9104
9105 @Override
9106 public int hashCode() {
9107 List<Object> list = new ArrayList<Object>();
9108
9109 return list.hashCode();
9110 }
9111
9112 @Override
9113 public int compareTo(listProjects_args other) {
9114 if (!getClass().equals(other.getClass())) {
9115 return getClass().getName().compareTo(other.getClass().getName());
9116 }
9117
9118 int lastComparison = 0;
9119
9120 return 0;
9121 }
9122
9123 public _Fields fieldForId(int fieldId) {
9124 return _Fields.findByThriftId(fieldId);
9125 }
9126
9127 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9128 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9129 }
9130
9131 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9132 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9133 }
9134
9135 @Override
9136 public String toString() {
9137 StringBuilder sb = new StringBuilder("listProjects_args(");
9138 boolean first = true;
9139
9140 sb.append(")");
9141 return sb.toString();
9142 }
9143
9144 public void validate() throws org.apache.thrift.TException {
9145
9146
9147 }
9148
9149 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9150 try {
9151 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9152 } catch (org.apache.thrift.TException te) {
9153 throw new java.io.IOException(te);
9154 }
9155 }
9156
9157 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9158 try {
9159 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9160 } catch (org.apache.thrift.TException te) {
9161 throw new java.io.IOException(te);
9162 }
9163 }
9164
9165 private static class listProjects_argsStandardSchemeFactory implements SchemeFactory {
9166 public listProjects_argsStandardScheme getScheme() {
9167 return new listProjects_argsStandardScheme();
9168 }
9169 }
9170
9171 private static class listProjects_argsStandardScheme extends StandardScheme<listProjects_args> {
9172
9173 public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_args struct) throws org.apache.thrift.TException {
9174 org.apache.thrift.protocol.TField schemeField;
9175 iprot.readStructBegin();
9176 while (true)
9177 {
9178 schemeField = iprot.readFieldBegin();
9179 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9180 break;
9181 }
9182 switch (schemeField.id) {
9183 default:
9184 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9185 }
9186 iprot.readFieldEnd();
9187 }
9188 iprot.readStructEnd();
9189
9190
9191 struct.validate();
9192 }
9193
9194 public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_args struct) throws org.apache.thrift.TException {
9195 struct.validate();
9196
9197 oprot.writeStructBegin(STRUCT_DESC);
9198 oprot.writeFieldStop();
9199 oprot.writeStructEnd();
9200 }
9201
9202 }
9203
9204 private static class listProjects_argsTupleSchemeFactory implements SchemeFactory {
9205 public listProjects_argsTupleScheme getScheme() {
9206 return new listProjects_argsTupleScheme();
9207 }
9208 }
9209
9210 private static class listProjects_argsTupleScheme extends TupleScheme<listProjects_args> {
9211
9212 @Override
9213 public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException {
9214 TTupleProtocol oprot = (TTupleProtocol) prot;
9215 }
9216
9217 @Override
9218 public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException {
9219 TTupleProtocol iprot = (TTupleProtocol) prot;
9220 }
9221 }
9222
9223 }
9224
9225 public static class listProjects_result implements org.apache.thrift.TBase<listProjects_result, listProjects_result._Fields>, java.io.Serializable, Cloneable, Comparable<listProjects_result> {
9226 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_result");
9227
9228 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
9229 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9230
9231 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9232 static {
9233 schemes.put(StandardScheme.class, new listProjects_resultStandardSchemeFactory());
9234 schemes.put(TupleScheme.class, new listProjects_resultTupleSchemeFactory());
9235 }
9236
9237 public List<Project> success;
9238 public CentralDogmaException e;
9239
9240
9241 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9242 SUCCESS((short)0, "success"),
9243 E((short)1, "e");
9244
9245 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9246
9247 static {
9248 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9249 byName.put(field.getFieldName(), field);
9250 }
9251 }
9252
9253
9254
9255
9256 public static _Fields findByThriftId(int fieldId) {
9257 switch(fieldId) {
9258 case 0:
9259 return SUCCESS;
9260 case 1:
9261 return E;
9262 default:
9263 return null;
9264 }
9265 }
9266
9267
9268
9269
9270
9271 public static _Fields findByThriftIdOrThrow(int fieldId) {
9272 _Fields fields = findByThriftId(fieldId);
9273 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9274 return fields;
9275 }
9276
9277
9278
9279
9280 public static _Fields findByName(String name) {
9281 return byName.get(name);
9282 }
9283
9284 private final short _thriftId;
9285 private final String _fieldName;
9286
9287 _Fields(short thriftId, String fieldName) {
9288 _thriftId = thriftId;
9289 _fieldName = fieldName;
9290 }
9291
9292 public short getThriftFieldId() {
9293 return _thriftId;
9294 }
9295
9296 public String getFieldName() {
9297 return _fieldName;
9298 }
9299 }
9300
9301
9302 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9303 static {
9304 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9305 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9306 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
9307 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Project.class))));
9308 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
9309 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9310 metaDataMap = Collections.unmodifiableMap(tmpMap);
9311 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listProjects_result.class, metaDataMap);
9312 }
9313
9314 public listProjects_result() {
9315 }
9316
9317 public listProjects_result(
9318 List<Project> success,
9319 CentralDogmaException e)
9320 {
9321 this();
9322 this.success = success;
9323 this.e = e;
9324 }
9325
9326
9327
9328
9329 public listProjects_result(listProjects_result other) {
9330 if (other.isSetSuccess()) {
9331 List<Project> __this__success = new ArrayList<Project>(other.success.size());
9332 for (Project other_element : other.success) {
9333 __this__success.add(new Project(other_element));
9334 }
9335 this.success = __this__success;
9336 }
9337 if (other.isSetE()) {
9338 this.e = new CentralDogmaException(other.e);
9339 }
9340 }
9341
9342 public listProjects_result deepCopy() {
9343 return new listProjects_result(this);
9344 }
9345
9346 @Override
9347 public void clear() {
9348 this.success = null;
9349 this.e = null;
9350 }
9351
9352 public int getSuccessSize() {
9353 return (this.success == null) ? 0 : this.success.size();
9354 }
9355
9356 public java.util.Iterator<Project> getSuccessIterator() {
9357 return (this.success == null) ? null : this.success.iterator();
9358 }
9359
9360 public void addToSuccess(Project elem) {
9361 if (this.success == null) {
9362 this.success = new ArrayList<Project>();
9363 }
9364 this.success.add(elem);
9365 }
9366
9367 public List<Project> getSuccess() {
9368 return this.success;
9369 }
9370
9371 public listProjects_result setSuccess(List<Project> success) {
9372 this.success = success;
9373 return this;
9374 }
9375
9376 public void unsetSuccess() {
9377 this.success = null;
9378 }
9379
9380
9381 public boolean isSetSuccess() {
9382 return this.success != null;
9383 }
9384
9385 public void setSuccessIsSet(boolean value) {
9386 if (!value) {
9387 this.success = null;
9388 }
9389 }
9390
9391 public CentralDogmaException getE() {
9392 return this.e;
9393 }
9394
9395 public listProjects_result setE(CentralDogmaException e) {
9396 this.e = e;
9397 return this;
9398 }
9399
9400 public void unsetE() {
9401 this.e = null;
9402 }
9403
9404
9405 public boolean isSetE() {
9406 return this.e != null;
9407 }
9408
9409 public void setEIsSet(boolean value) {
9410 if (!value) {
9411 this.e = null;
9412 }
9413 }
9414
9415 public void setFieldValue(_Fields field, Object value) {
9416 switch (field) {
9417 case SUCCESS:
9418 if (value == null) {
9419 unsetSuccess();
9420 } else {
9421 setSuccess((List<Project>)value);
9422 }
9423 break;
9424
9425 case E:
9426 if (value == null) {
9427 unsetE();
9428 } else {
9429 setE((CentralDogmaException)value);
9430 }
9431 break;
9432
9433 }
9434 }
9435
9436 public Object getFieldValue(_Fields field) {
9437 switch (field) {
9438 case SUCCESS:
9439 return getSuccess();
9440
9441 case E:
9442 return getE();
9443
9444 }
9445 throw new IllegalStateException();
9446 }
9447
9448
9449 public boolean isSet(_Fields field) {
9450 if (field == null) {
9451 throw new IllegalArgumentException();
9452 }
9453
9454 switch (field) {
9455 case SUCCESS:
9456 return isSetSuccess();
9457 case E:
9458 return isSetE();
9459 }
9460 throw new IllegalStateException();
9461 }
9462
9463 @Override
9464 public boolean equals(Object that) {
9465 if (that == null)
9466 return false;
9467 if (that instanceof listProjects_result)
9468 return this.equals((listProjects_result)that);
9469 return false;
9470 }
9471
9472 public boolean equals(listProjects_result that) {
9473 if (that == null)
9474 return false;
9475
9476 boolean this_present_success = true && this.isSetSuccess();
9477 boolean that_present_success = true && that.isSetSuccess();
9478 if (this_present_success || that_present_success) {
9479 if (!(this_present_success && that_present_success))
9480 return false;
9481 if (!this.success.equals(that.success))
9482 return false;
9483 }
9484
9485 boolean this_present_e = true && this.isSetE();
9486 boolean that_present_e = true && that.isSetE();
9487 if (this_present_e || that_present_e) {
9488 if (!(this_present_e && that_present_e))
9489 return false;
9490 if (!this.e.equals(that.e))
9491 return false;
9492 }
9493
9494 return true;
9495 }
9496
9497 @Override
9498 public int hashCode() {
9499 List<Object> list = new ArrayList<Object>();
9500
9501 boolean present_success = true && (isSetSuccess());
9502 list.add(present_success);
9503 if (present_success)
9504 list.add(success);
9505
9506 boolean present_e = true && (isSetE());
9507 list.add(present_e);
9508 if (present_e)
9509 list.add(e);
9510
9511 return list.hashCode();
9512 }
9513
9514 @Override
9515 public int compareTo(listProjects_result other) {
9516 if (!getClass().equals(other.getClass())) {
9517 return getClass().getName().compareTo(other.getClass().getName());
9518 }
9519
9520 int lastComparison = 0;
9521
9522 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9523 if (lastComparison != 0) {
9524 return lastComparison;
9525 }
9526 if (isSetSuccess()) {
9527 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9528 if (lastComparison != 0) {
9529 return lastComparison;
9530 }
9531 }
9532 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
9533 if (lastComparison != 0) {
9534 return lastComparison;
9535 }
9536 if (isSetE()) {
9537 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
9538 if (lastComparison != 0) {
9539 return lastComparison;
9540 }
9541 }
9542 return 0;
9543 }
9544
9545 public _Fields fieldForId(int fieldId) {
9546 return _Fields.findByThriftId(fieldId);
9547 }
9548
9549 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9550 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9551 }
9552
9553 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9554 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9555 }
9556
9557 @Override
9558 public String toString() {
9559 StringBuilder sb = new StringBuilder("listProjects_result(");
9560 boolean first = true;
9561
9562 sb.append("success:");
9563 if (this.success == null) {
9564 sb.append("null");
9565 } else {
9566 sb.append(this.success);
9567 }
9568 first = false;
9569 if (!first) sb.append(", ");
9570 sb.append("e:");
9571 if (this.e == null) {
9572 sb.append("null");
9573 } else {
9574 sb.append(this.e);
9575 }
9576 first = false;
9577 sb.append(")");
9578 return sb.toString();
9579 }
9580
9581 public void validate() throws org.apache.thrift.TException {
9582
9583
9584 }
9585
9586 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9587 try {
9588 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9589 } catch (org.apache.thrift.TException te) {
9590 throw new java.io.IOException(te);
9591 }
9592 }
9593
9594 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9595 try {
9596 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9597 } catch (org.apache.thrift.TException te) {
9598 throw new java.io.IOException(te);
9599 }
9600 }
9601
9602 private static class listProjects_resultStandardSchemeFactory implements SchemeFactory {
9603 public listProjects_resultStandardScheme getScheme() {
9604 return new listProjects_resultStandardScheme();
9605 }
9606 }
9607
9608 private static class listProjects_resultStandardScheme extends StandardScheme<listProjects_result> {
9609
9610 public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_result struct) throws org.apache.thrift.TException {
9611 org.apache.thrift.protocol.TField schemeField;
9612 iprot.readStructBegin();
9613 while (true)
9614 {
9615 schemeField = iprot.readFieldBegin();
9616 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9617 break;
9618 }
9619 switch (schemeField.id) {
9620 case 0:
9621 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9622 {
9623 org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
9624 struct.success = new ArrayList<Project>(_list72.size);
9625 Project _elem73;
9626 for (int _i74 = 0; _i74 < _list72.size; ++_i74)
9627 {
9628 _elem73 = new Project();
9629 _elem73.read(iprot);
9630 struct.success.add(_elem73);
9631 }
9632 iprot.readListEnd();
9633 }
9634 struct.setSuccessIsSet(true);
9635 } else {
9636 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9637 }
9638 break;
9639 case 1:
9640 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9641 struct.e = new CentralDogmaException();
9642 struct.e.read(iprot);
9643 struct.setEIsSet(true);
9644 } else {
9645 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9646 }
9647 break;
9648 default:
9649 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9650 }
9651 iprot.readFieldEnd();
9652 }
9653 iprot.readStructEnd();
9654
9655
9656 struct.validate();
9657 }
9658
9659 public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_result struct) throws org.apache.thrift.TException {
9660 struct.validate();
9661
9662 oprot.writeStructBegin(STRUCT_DESC);
9663 if (struct.success != null) {
9664 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9665 {
9666 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
9667 for (Project _iter75 : struct.success)
9668 {
9669 _iter75.write(oprot);
9670 }
9671 oprot.writeListEnd();
9672 }
9673 oprot.writeFieldEnd();
9674 }
9675 if (struct.e != null) {
9676 oprot.writeFieldBegin(E_FIELD_DESC);
9677 struct.e.write(oprot);
9678 oprot.writeFieldEnd();
9679 }
9680 oprot.writeFieldStop();
9681 oprot.writeStructEnd();
9682 }
9683
9684 }
9685
9686 private static class listProjects_resultTupleSchemeFactory implements SchemeFactory {
9687 public listProjects_resultTupleScheme getScheme() {
9688 return new listProjects_resultTupleScheme();
9689 }
9690 }
9691
9692 private static class listProjects_resultTupleScheme extends TupleScheme<listProjects_result> {
9693
9694 @Override
9695 public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException {
9696 TTupleProtocol oprot = (TTupleProtocol) prot;
9697 BitSet optionals = new BitSet();
9698 if (struct.isSetSuccess()) {
9699 optionals.set(0);
9700 }
9701 if (struct.isSetE()) {
9702 optionals.set(1);
9703 }
9704 oprot.writeBitSet(optionals, 2);
9705 if (struct.isSetSuccess()) {
9706 {
9707 oprot.writeI32(struct.success.size());
9708 for (Project _iter76 : struct.success)
9709 {
9710 _iter76.write(oprot);
9711 }
9712 }
9713 }
9714 if (struct.isSetE()) {
9715 struct.e.write(oprot);
9716 }
9717 }
9718
9719 @Override
9720 public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException {
9721 TTupleProtocol iprot = (TTupleProtocol) prot;
9722 BitSet incoming = iprot.readBitSet(2);
9723 if (incoming.get(0)) {
9724 {
9725 org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
9726 struct.success = new ArrayList<Project>(_list77.size);
9727 Project _elem78;
9728 for (int _i79 = 0; _i79 < _list77.size; ++_i79)
9729 {
9730 _elem78 = new Project();
9731 _elem78.read(iprot);
9732 struct.success.add(_elem78);
9733 }
9734 }
9735 struct.setSuccessIsSet(true);
9736 }
9737 if (incoming.get(1)) {
9738 struct.e = new CentralDogmaException();
9739 struct.e.read(iprot);
9740 struct.setEIsSet(true);
9741 }
9742 }
9743 }
9744
9745 }
9746
9747 public static class listRemovedProjects_args implements org.apache.thrift.TBase<listRemovedProjects_args, listRemovedProjects_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedProjects_args> {
9748 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_args");
9749
9750
9751 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9752 static {
9753 schemes.put(StandardScheme.class, new listRemovedProjects_argsStandardSchemeFactory());
9754 schemes.put(TupleScheme.class, new listRemovedProjects_argsTupleSchemeFactory());
9755 }
9756
9757
9758
9759 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9760 ;
9761
9762 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9763
9764 static {
9765 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9766 byName.put(field.getFieldName(), field);
9767 }
9768 }
9769
9770
9771
9772
9773 public static _Fields findByThriftId(int fieldId) {
9774 switch(fieldId) {
9775 default:
9776 return null;
9777 }
9778 }
9779
9780
9781
9782
9783
9784 public static _Fields findByThriftIdOrThrow(int fieldId) {
9785 _Fields fields = findByThriftId(fieldId);
9786 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9787 return fields;
9788 }
9789
9790
9791
9792
9793 public static _Fields findByName(String name) {
9794 return byName.get(name);
9795 }
9796
9797 private final short _thriftId;
9798 private final String _fieldName;
9799
9800 _Fields(short thriftId, String fieldName) {
9801 _thriftId = thriftId;
9802 _fieldName = fieldName;
9803 }
9804
9805 public short getThriftFieldId() {
9806 return _thriftId;
9807 }
9808
9809 public String getFieldName() {
9810 return _fieldName;
9811 }
9812 }
9813 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9814 static {
9815 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9816 metaDataMap = Collections.unmodifiableMap(tmpMap);
9817 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedProjects_args.class, metaDataMap);
9818 }
9819
9820 public listRemovedProjects_args() {
9821 }
9822
9823
9824
9825
9826 public listRemovedProjects_args(listRemovedProjects_args other) {
9827 }
9828
9829 public listRemovedProjects_args deepCopy() {
9830 return new listRemovedProjects_args(this);
9831 }
9832
9833 @Override
9834 public void clear() {
9835 }
9836
9837 public void setFieldValue(_Fields field, Object value) {
9838 switch (field) {
9839 }
9840 }
9841
9842 public Object getFieldValue(_Fields field) {
9843 switch (field) {
9844 }
9845 throw new IllegalStateException();
9846 }
9847
9848
9849 public boolean isSet(_Fields field) {
9850 if (field == null) {
9851 throw new IllegalArgumentException();
9852 }
9853
9854 switch (field) {
9855 }
9856 throw new IllegalStateException();
9857 }
9858
9859 @Override
9860 public boolean equals(Object that) {
9861 if (that == null)
9862 return false;
9863 if (that instanceof listRemovedProjects_args)
9864 return this.equals((listRemovedProjects_args)that);
9865 return false;
9866 }
9867
9868 public boolean equals(listRemovedProjects_args that) {
9869 if (that == null)
9870 return false;
9871
9872 return true;
9873 }
9874
9875 @Override
9876 public int hashCode() {
9877 List<Object> list = new ArrayList<Object>();
9878
9879 return list.hashCode();
9880 }
9881
9882 @Override
9883 public int compareTo(listRemovedProjects_args other) {
9884 if (!getClass().equals(other.getClass())) {
9885 return getClass().getName().compareTo(other.getClass().getName());
9886 }
9887
9888 int lastComparison = 0;
9889
9890 return 0;
9891 }
9892
9893 public _Fields fieldForId(int fieldId) {
9894 return _Fields.findByThriftId(fieldId);
9895 }
9896
9897 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9898 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9899 }
9900
9901 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9902 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9903 }
9904
9905 @Override
9906 public String toString() {
9907 StringBuilder sb = new StringBuilder("listRemovedProjects_args(");
9908 boolean first = true;
9909
9910 sb.append(")");
9911 return sb.toString();
9912 }
9913
9914 public void validate() throws org.apache.thrift.TException {
9915
9916
9917 }
9918
9919 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9920 try {
9921 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9922 } catch (org.apache.thrift.TException te) {
9923 throw new java.io.IOException(te);
9924 }
9925 }
9926
9927 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9928 try {
9929 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9930 } catch (org.apache.thrift.TException te) {
9931 throw new java.io.IOException(te);
9932 }
9933 }
9934
9935 private static class listRemovedProjects_argsStandardSchemeFactory implements SchemeFactory {
9936 public listRemovedProjects_argsStandardScheme getScheme() {
9937 return new listRemovedProjects_argsStandardScheme();
9938 }
9939 }
9940
9941 private static class listRemovedProjects_argsStandardScheme extends StandardScheme<listRemovedProjects_args> {
9942
9943 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
9944 org.apache.thrift.protocol.TField schemeField;
9945 iprot.readStructBegin();
9946 while (true)
9947 {
9948 schemeField = iprot.readFieldBegin();
9949 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9950 break;
9951 }
9952 switch (schemeField.id) {
9953 default:
9954 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9955 }
9956 iprot.readFieldEnd();
9957 }
9958 iprot.readStructEnd();
9959
9960
9961 struct.validate();
9962 }
9963
9964 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
9965 struct.validate();
9966
9967 oprot.writeStructBegin(STRUCT_DESC);
9968 oprot.writeFieldStop();
9969 oprot.writeStructEnd();
9970 }
9971
9972 }
9973
9974 private static class listRemovedProjects_argsTupleSchemeFactory implements SchemeFactory {
9975 public listRemovedProjects_argsTupleScheme getScheme() {
9976 return new listRemovedProjects_argsTupleScheme();
9977 }
9978 }
9979
9980 private static class listRemovedProjects_argsTupleScheme extends TupleScheme<listRemovedProjects_args> {
9981
9982 @Override
9983 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
9984 TTupleProtocol oprot = (TTupleProtocol) prot;
9985 }
9986
9987 @Override
9988 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException {
9989 TTupleProtocol iprot = (TTupleProtocol) prot;
9990 }
9991 }
9992
9993 }
9994
9995 public static class listRemovedProjects_result implements org.apache.thrift.TBase<listRemovedProjects_result, listRemovedProjects_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedProjects_result> {
9996 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_result");
9997
9998 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0);
9999 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10000
10001 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10002 static {
10003 schemes.put(StandardScheme.class, new listRemovedProjects_resultStandardSchemeFactory());
10004 schemes.put(TupleScheme.class, new listRemovedProjects_resultTupleSchemeFactory());
10005 }
10006
10007 public Set<String> success;
10008 public CentralDogmaException e;
10009
10010
10011 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10012 SUCCESS((short)0, "success"),
10013 E((short)1, "e");
10014
10015 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10016
10017 static {
10018 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10019 byName.put(field.getFieldName(), field);
10020 }
10021 }
10022
10023
10024
10025
10026 public static _Fields findByThriftId(int fieldId) {
10027 switch(fieldId) {
10028 case 0:
10029 return SUCCESS;
10030 case 1:
10031 return E;
10032 default:
10033 return null;
10034 }
10035 }
10036
10037
10038
10039
10040
10041 public static _Fields findByThriftIdOrThrow(int fieldId) {
10042 _Fields fields = findByThriftId(fieldId);
10043 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10044 return fields;
10045 }
10046
10047
10048
10049
10050 public static _Fields findByName(String name) {
10051 return byName.get(name);
10052 }
10053
10054 private final short _thriftId;
10055 private final String _fieldName;
10056
10057 _Fields(short thriftId, String fieldName) {
10058 _thriftId = thriftId;
10059 _fieldName = fieldName;
10060 }
10061
10062 public short getThriftFieldId() {
10063 return _thriftId;
10064 }
10065
10066 public String getFieldName() {
10067 return _fieldName;
10068 }
10069 }
10070
10071
10072 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10073 static {
10074 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10075 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10076 new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
10077 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
10078 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
10079 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10080 metaDataMap = Collections.unmodifiableMap(tmpMap);
10081 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedProjects_result.class, metaDataMap);
10082 }
10083
10084 public listRemovedProjects_result() {
10085 }
10086
10087 public listRemovedProjects_result(
10088 Set<String> success,
10089 CentralDogmaException e)
10090 {
10091 this();
10092 this.success = success;
10093 this.e = e;
10094 }
10095
10096
10097
10098
10099 public listRemovedProjects_result(listRemovedProjects_result other) {
10100 if (other.isSetSuccess()) {
10101 Set<String> __this__success = new HashSet<String>(other.success);
10102 this.success = __this__success;
10103 }
10104 if (other.isSetE()) {
10105 this.e = new CentralDogmaException(other.e);
10106 }
10107 }
10108
10109 public listRemovedProjects_result deepCopy() {
10110 return new listRemovedProjects_result(this);
10111 }
10112
10113 @Override
10114 public void clear() {
10115 this.success = null;
10116 this.e = null;
10117 }
10118
10119 public int getSuccessSize() {
10120 return (this.success == null) ? 0 : this.success.size();
10121 }
10122
10123 public java.util.Iterator<String> getSuccessIterator() {
10124 return (this.success == null) ? null : this.success.iterator();
10125 }
10126
10127 public void addToSuccess(String elem) {
10128 if (this.success == null) {
10129 this.success = new HashSet<String>();
10130 }
10131 this.success.add(elem);
10132 }
10133
10134 public Set<String> getSuccess() {
10135 return this.success;
10136 }
10137
10138 public listRemovedProjects_result setSuccess(Set<String> success) {
10139 this.success = success;
10140 return this;
10141 }
10142
10143 public void unsetSuccess() {
10144 this.success = null;
10145 }
10146
10147
10148 public boolean isSetSuccess() {
10149 return this.success != null;
10150 }
10151
10152 public void setSuccessIsSet(boolean value) {
10153 if (!value) {
10154 this.success = null;
10155 }
10156 }
10157
10158 public CentralDogmaException getE() {
10159 return this.e;
10160 }
10161
10162 public listRemovedProjects_result setE(CentralDogmaException e) {
10163 this.e = e;
10164 return this;
10165 }
10166
10167 public void unsetE() {
10168 this.e = null;
10169 }
10170
10171
10172 public boolean isSetE() {
10173 return this.e != null;
10174 }
10175
10176 public void setEIsSet(boolean value) {
10177 if (!value) {
10178 this.e = null;
10179 }
10180 }
10181
10182 public void setFieldValue(_Fields field, Object value) {
10183 switch (field) {
10184 case SUCCESS:
10185 if (value == null) {
10186 unsetSuccess();
10187 } else {
10188 setSuccess((Set<String>)value);
10189 }
10190 break;
10191
10192 case E:
10193 if (value == null) {
10194 unsetE();
10195 } else {
10196 setE((CentralDogmaException)value);
10197 }
10198 break;
10199
10200 }
10201 }
10202
10203 public Object getFieldValue(_Fields field) {
10204 switch (field) {
10205 case SUCCESS:
10206 return getSuccess();
10207
10208 case E:
10209 return getE();
10210
10211 }
10212 throw new IllegalStateException();
10213 }
10214
10215
10216 public boolean isSet(_Fields field) {
10217 if (field == null) {
10218 throw new IllegalArgumentException();
10219 }
10220
10221 switch (field) {
10222 case SUCCESS:
10223 return isSetSuccess();
10224 case E:
10225 return isSetE();
10226 }
10227 throw new IllegalStateException();
10228 }
10229
10230 @Override
10231 public boolean equals(Object that) {
10232 if (that == null)
10233 return false;
10234 if (that instanceof listRemovedProjects_result)
10235 return this.equals((listRemovedProjects_result)that);
10236 return false;
10237 }
10238
10239 public boolean equals(listRemovedProjects_result that) {
10240 if (that == null)
10241 return false;
10242
10243 boolean this_present_success = true && this.isSetSuccess();
10244 boolean that_present_success = true && that.isSetSuccess();
10245 if (this_present_success || that_present_success) {
10246 if (!(this_present_success && that_present_success))
10247 return false;
10248 if (!this.success.equals(that.success))
10249 return false;
10250 }
10251
10252 boolean this_present_e = true && this.isSetE();
10253 boolean that_present_e = true && that.isSetE();
10254 if (this_present_e || that_present_e) {
10255 if (!(this_present_e && that_present_e))
10256 return false;
10257 if (!this.e.equals(that.e))
10258 return false;
10259 }
10260
10261 return true;
10262 }
10263
10264 @Override
10265 public int hashCode() {
10266 List<Object> list = new ArrayList<Object>();
10267
10268 boolean present_success = true && (isSetSuccess());
10269 list.add(present_success);
10270 if (present_success)
10271 list.add(success);
10272
10273 boolean present_e = true && (isSetE());
10274 list.add(present_e);
10275 if (present_e)
10276 list.add(e);
10277
10278 return list.hashCode();
10279 }
10280
10281 @Override
10282 public int compareTo(listRemovedProjects_result other) {
10283 if (!getClass().equals(other.getClass())) {
10284 return getClass().getName().compareTo(other.getClass().getName());
10285 }
10286
10287 int lastComparison = 0;
10288
10289 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10290 if (lastComparison != 0) {
10291 return lastComparison;
10292 }
10293 if (isSetSuccess()) {
10294 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10295 if (lastComparison != 0) {
10296 return lastComparison;
10297 }
10298 }
10299 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
10300 if (lastComparison != 0) {
10301 return lastComparison;
10302 }
10303 if (isSetE()) {
10304 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
10305 if (lastComparison != 0) {
10306 return lastComparison;
10307 }
10308 }
10309 return 0;
10310 }
10311
10312 public _Fields fieldForId(int fieldId) {
10313 return _Fields.findByThriftId(fieldId);
10314 }
10315
10316 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10317 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10318 }
10319
10320 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10321 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10322 }
10323
10324 @Override
10325 public String toString() {
10326 StringBuilder sb = new StringBuilder("listRemovedProjects_result(");
10327 boolean first = true;
10328
10329 sb.append("success:");
10330 if (this.success == null) {
10331 sb.append("null");
10332 } else {
10333 sb.append(this.success);
10334 }
10335 first = false;
10336 if (!first) sb.append(", ");
10337 sb.append("e:");
10338 if (this.e == null) {
10339 sb.append("null");
10340 } else {
10341 sb.append(this.e);
10342 }
10343 first = false;
10344 sb.append(")");
10345 return sb.toString();
10346 }
10347
10348 public void validate() throws org.apache.thrift.TException {
10349
10350
10351 }
10352
10353 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10354 try {
10355 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10356 } catch (org.apache.thrift.TException te) {
10357 throw new java.io.IOException(te);
10358 }
10359 }
10360
10361 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10362 try {
10363 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10364 } catch (org.apache.thrift.TException te) {
10365 throw new java.io.IOException(te);
10366 }
10367 }
10368
10369 private static class listRemovedProjects_resultStandardSchemeFactory implements SchemeFactory {
10370 public listRemovedProjects_resultStandardScheme getScheme() {
10371 return new listRemovedProjects_resultStandardScheme();
10372 }
10373 }
10374
10375 private static class listRemovedProjects_resultStandardScheme extends StandardScheme<listRemovedProjects_result> {
10376
10377 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
10378 org.apache.thrift.protocol.TField schemeField;
10379 iprot.readStructBegin();
10380 while (true)
10381 {
10382 schemeField = iprot.readFieldBegin();
10383 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10384 break;
10385 }
10386 switch (schemeField.id) {
10387 case 0:
10388 if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
10389 {
10390 org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin();
10391 struct.success = new HashSet<String>(2*_set80.size);
10392 String _elem81;
10393 for (int _i82 = 0; _i82 < _set80.size; ++_i82)
10394 {
10395 _elem81 = iprot.readString();
10396 struct.success.add(_elem81);
10397 }
10398 iprot.readSetEnd();
10399 }
10400 struct.setSuccessIsSet(true);
10401 } else {
10402 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10403 }
10404 break;
10405 case 1:
10406 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10407 struct.e = new CentralDogmaException();
10408 struct.e.read(iprot);
10409 struct.setEIsSet(true);
10410 } else {
10411 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10412 }
10413 break;
10414 default:
10415 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10416 }
10417 iprot.readFieldEnd();
10418 }
10419 iprot.readStructEnd();
10420
10421
10422 struct.validate();
10423 }
10424
10425 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
10426 struct.validate();
10427
10428 oprot.writeStructBegin(STRUCT_DESC);
10429 if (struct.success != null) {
10430 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10431 {
10432 oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
10433 for (String _iter83 : struct.success)
10434 {
10435 oprot.writeString(_iter83);
10436 }
10437 oprot.writeSetEnd();
10438 }
10439 oprot.writeFieldEnd();
10440 }
10441 if (struct.e != null) {
10442 oprot.writeFieldBegin(E_FIELD_DESC);
10443 struct.e.write(oprot);
10444 oprot.writeFieldEnd();
10445 }
10446 oprot.writeFieldStop();
10447 oprot.writeStructEnd();
10448 }
10449
10450 }
10451
10452 private static class listRemovedProjects_resultTupleSchemeFactory implements SchemeFactory {
10453 public listRemovedProjects_resultTupleScheme getScheme() {
10454 return new listRemovedProjects_resultTupleScheme();
10455 }
10456 }
10457
10458 private static class listRemovedProjects_resultTupleScheme extends TupleScheme<listRemovedProjects_result> {
10459
10460 @Override
10461 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
10462 TTupleProtocol oprot = (TTupleProtocol) prot;
10463 BitSet optionals = new BitSet();
10464 if (struct.isSetSuccess()) {
10465 optionals.set(0);
10466 }
10467 if (struct.isSetE()) {
10468 optionals.set(1);
10469 }
10470 oprot.writeBitSet(optionals, 2);
10471 if (struct.isSetSuccess()) {
10472 {
10473 oprot.writeI32(struct.success.size());
10474 for (String _iter84 : struct.success)
10475 {
10476 oprot.writeString(_iter84);
10477 }
10478 }
10479 }
10480 if (struct.isSetE()) {
10481 struct.e.write(oprot);
10482 }
10483 }
10484
10485 @Override
10486 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException {
10487 TTupleProtocol iprot = (TTupleProtocol) prot;
10488 BitSet incoming = iprot.readBitSet(2);
10489 if (incoming.get(0)) {
10490 {
10491 org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
10492 struct.success = new HashSet<String>(2*_set85.size);
10493 String _elem86;
10494 for (int _i87 = 0; _i87 < _set85.size; ++_i87)
10495 {
10496 _elem86 = iprot.readString();
10497 struct.success.add(_elem86);
10498 }
10499 }
10500 struct.setSuccessIsSet(true);
10501 }
10502 if (incoming.get(1)) {
10503 struct.e = new CentralDogmaException();
10504 struct.e.read(iprot);
10505 struct.setEIsSet(true);
10506 }
10507 }
10508 }
10509
10510 }
10511
10512 public static class createRepository_args implements org.apache.thrift.TBase<createRepository_args, createRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<createRepository_args> {
10513 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_args");
10514
10515 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
10516 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
10517
10518 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10519 static {
10520 schemes.put(StandardScheme.class, new createRepository_argsStandardSchemeFactory());
10521 schemes.put(TupleScheme.class, new createRepository_argsTupleSchemeFactory());
10522 }
10523
10524 public String projectName;
10525 public String repositoryName;
10526
10527
10528 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10529 PROJECT_NAME((short)1, "projectName"),
10530 REPOSITORY_NAME((short)2, "repositoryName");
10531
10532 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10533
10534 static {
10535 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10536 byName.put(field.getFieldName(), field);
10537 }
10538 }
10539
10540
10541
10542
10543 public static _Fields findByThriftId(int fieldId) {
10544 switch(fieldId) {
10545 case 1:
10546 return PROJECT_NAME;
10547 case 2:
10548 return REPOSITORY_NAME;
10549 default:
10550 return null;
10551 }
10552 }
10553
10554
10555
10556
10557
10558 public static _Fields findByThriftIdOrThrow(int fieldId) {
10559 _Fields fields = findByThriftId(fieldId);
10560 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10561 return fields;
10562 }
10563
10564
10565
10566
10567 public static _Fields findByName(String name) {
10568 return byName.get(name);
10569 }
10570
10571 private final short _thriftId;
10572 private final String _fieldName;
10573
10574 _Fields(short thriftId, String fieldName) {
10575 _thriftId = thriftId;
10576 _fieldName = fieldName;
10577 }
10578
10579 public short getThriftFieldId() {
10580 return _thriftId;
10581 }
10582
10583 public String getFieldName() {
10584 return _fieldName;
10585 }
10586 }
10587
10588
10589 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10590 static {
10591 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10592 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
10593 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10594 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
10595 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10596 metaDataMap = Collections.unmodifiableMap(tmpMap);
10597 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRepository_args.class, metaDataMap);
10598 }
10599
10600 public createRepository_args() {
10601 }
10602
10603 public createRepository_args(
10604 String projectName,
10605 String repositoryName)
10606 {
10607 this();
10608 this.projectName = projectName;
10609 this.repositoryName = repositoryName;
10610 }
10611
10612
10613
10614
10615 public createRepository_args(createRepository_args other) {
10616 if (other.isSetProjectName()) {
10617 this.projectName = other.projectName;
10618 }
10619 if (other.isSetRepositoryName()) {
10620 this.repositoryName = other.repositoryName;
10621 }
10622 }
10623
10624 public createRepository_args deepCopy() {
10625 return new createRepository_args(this);
10626 }
10627
10628 @Override
10629 public void clear() {
10630 this.projectName = null;
10631 this.repositoryName = null;
10632 }
10633
10634 public String getProjectName() {
10635 return this.projectName;
10636 }
10637
10638 public createRepository_args setProjectName(String projectName) {
10639 this.projectName = projectName;
10640 return this;
10641 }
10642
10643 public void unsetProjectName() {
10644 this.projectName = null;
10645 }
10646
10647
10648 public boolean isSetProjectName() {
10649 return this.projectName != null;
10650 }
10651
10652 public void setProjectNameIsSet(boolean value) {
10653 if (!value) {
10654 this.projectName = null;
10655 }
10656 }
10657
10658 public String getRepositoryName() {
10659 return this.repositoryName;
10660 }
10661
10662 public createRepository_args setRepositoryName(String repositoryName) {
10663 this.repositoryName = repositoryName;
10664 return this;
10665 }
10666
10667 public void unsetRepositoryName() {
10668 this.repositoryName = null;
10669 }
10670
10671
10672 public boolean isSetRepositoryName() {
10673 return this.repositoryName != null;
10674 }
10675
10676 public void setRepositoryNameIsSet(boolean value) {
10677 if (!value) {
10678 this.repositoryName = null;
10679 }
10680 }
10681
10682 public void setFieldValue(_Fields field, Object value) {
10683 switch (field) {
10684 case PROJECT_NAME:
10685 if (value == null) {
10686 unsetProjectName();
10687 } else {
10688 setProjectName((String)value);
10689 }
10690 break;
10691
10692 case REPOSITORY_NAME:
10693 if (value == null) {
10694 unsetRepositoryName();
10695 } else {
10696 setRepositoryName((String)value);
10697 }
10698 break;
10699
10700 }
10701 }
10702
10703 public Object getFieldValue(_Fields field) {
10704 switch (field) {
10705 case PROJECT_NAME:
10706 return getProjectName();
10707
10708 case REPOSITORY_NAME:
10709 return getRepositoryName();
10710
10711 }
10712 throw new IllegalStateException();
10713 }
10714
10715
10716 public boolean isSet(_Fields field) {
10717 if (field == null) {
10718 throw new IllegalArgumentException();
10719 }
10720
10721 switch (field) {
10722 case PROJECT_NAME:
10723 return isSetProjectName();
10724 case REPOSITORY_NAME:
10725 return isSetRepositoryName();
10726 }
10727 throw new IllegalStateException();
10728 }
10729
10730 @Override
10731 public boolean equals(Object that) {
10732 if (that == null)
10733 return false;
10734 if (that instanceof createRepository_args)
10735 return this.equals((createRepository_args)that);
10736 return false;
10737 }
10738
10739 public boolean equals(createRepository_args that) {
10740 if (that == null)
10741 return false;
10742
10743 boolean this_present_projectName = true && this.isSetProjectName();
10744 boolean that_present_projectName = true && that.isSetProjectName();
10745 if (this_present_projectName || that_present_projectName) {
10746 if (!(this_present_projectName && that_present_projectName))
10747 return false;
10748 if (!this.projectName.equals(that.projectName))
10749 return false;
10750 }
10751
10752 boolean this_present_repositoryName = true && this.isSetRepositoryName();
10753 boolean that_present_repositoryName = true && that.isSetRepositoryName();
10754 if (this_present_repositoryName || that_present_repositoryName) {
10755 if (!(this_present_repositoryName && that_present_repositoryName))
10756 return false;
10757 if (!this.repositoryName.equals(that.repositoryName))
10758 return false;
10759 }
10760
10761 return true;
10762 }
10763
10764 @Override
10765 public int hashCode() {
10766 List<Object> list = new ArrayList<Object>();
10767
10768 boolean present_projectName = true && (isSetProjectName());
10769 list.add(present_projectName);
10770 if (present_projectName)
10771 list.add(projectName);
10772
10773 boolean present_repositoryName = true && (isSetRepositoryName());
10774 list.add(present_repositoryName);
10775 if (present_repositoryName)
10776 list.add(repositoryName);
10777
10778 return list.hashCode();
10779 }
10780
10781 @Override
10782 public int compareTo(createRepository_args other) {
10783 if (!getClass().equals(other.getClass())) {
10784 return getClass().getName().compareTo(other.getClass().getName());
10785 }
10786
10787 int lastComparison = 0;
10788
10789 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
10790 if (lastComparison != 0) {
10791 return lastComparison;
10792 }
10793 if (isSetProjectName()) {
10794 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
10795 if (lastComparison != 0) {
10796 return lastComparison;
10797 }
10798 }
10799 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
10800 if (lastComparison != 0) {
10801 return lastComparison;
10802 }
10803 if (isSetRepositoryName()) {
10804 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
10805 if (lastComparison != 0) {
10806 return lastComparison;
10807 }
10808 }
10809 return 0;
10810 }
10811
10812 public _Fields fieldForId(int fieldId) {
10813 return _Fields.findByThriftId(fieldId);
10814 }
10815
10816 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10817 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10818 }
10819
10820 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10821 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10822 }
10823
10824 @Override
10825 public String toString() {
10826 StringBuilder sb = new StringBuilder("createRepository_args(");
10827 boolean first = true;
10828
10829 sb.append("projectName:");
10830 if (this.projectName == null) {
10831 sb.append("null");
10832 } else {
10833 sb.append(this.projectName);
10834 }
10835 first = false;
10836 if (!first) sb.append(", ");
10837 sb.append("repositoryName:");
10838 if (this.repositoryName == null) {
10839 sb.append("null");
10840 } else {
10841 sb.append(this.repositoryName);
10842 }
10843 first = false;
10844 sb.append(")");
10845 return sb.toString();
10846 }
10847
10848 public void validate() throws org.apache.thrift.TException {
10849
10850
10851 }
10852
10853 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10854 try {
10855 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10856 } catch (org.apache.thrift.TException te) {
10857 throw new java.io.IOException(te);
10858 }
10859 }
10860
10861 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10862 try {
10863 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10864 } catch (org.apache.thrift.TException te) {
10865 throw new java.io.IOException(te);
10866 }
10867 }
10868
10869 private static class createRepository_argsStandardSchemeFactory implements SchemeFactory {
10870 public createRepository_argsStandardScheme getScheme() {
10871 return new createRepository_argsStandardScheme();
10872 }
10873 }
10874
10875 private static class createRepository_argsStandardScheme extends StandardScheme<createRepository_args> {
10876
10877 public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_args struct) throws org.apache.thrift.TException {
10878 org.apache.thrift.protocol.TField schemeField;
10879 iprot.readStructBegin();
10880 while (true)
10881 {
10882 schemeField = iprot.readFieldBegin();
10883 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10884 break;
10885 }
10886 switch (schemeField.id) {
10887 case 1:
10888 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10889 struct.projectName = iprot.readString();
10890 struct.setProjectNameIsSet(true);
10891 } else {
10892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10893 }
10894 break;
10895 case 2:
10896 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10897 struct.repositoryName = iprot.readString();
10898 struct.setRepositoryNameIsSet(true);
10899 } else {
10900 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10901 }
10902 break;
10903 default:
10904 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10905 }
10906 iprot.readFieldEnd();
10907 }
10908 iprot.readStructEnd();
10909
10910
10911 struct.validate();
10912 }
10913
10914 public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_args struct) throws org.apache.thrift.TException {
10915 struct.validate();
10916
10917 oprot.writeStructBegin(STRUCT_DESC);
10918 if (struct.projectName != null) {
10919 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
10920 oprot.writeString(struct.projectName);
10921 oprot.writeFieldEnd();
10922 }
10923 if (struct.repositoryName != null) {
10924 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
10925 oprot.writeString(struct.repositoryName);
10926 oprot.writeFieldEnd();
10927 }
10928 oprot.writeFieldStop();
10929 oprot.writeStructEnd();
10930 }
10931
10932 }
10933
10934 private static class createRepository_argsTupleSchemeFactory implements SchemeFactory {
10935 public createRepository_argsTupleScheme getScheme() {
10936 return new createRepository_argsTupleScheme();
10937 }
10938 }
10939
10940 private static class createRepository_argsTupleScheme extends TupleScheme<createRepository_args> {
10941
10942 @Override
10943 public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException {
10944 TTupleProtocol oprot = (TTupleProtocol) prot;
10945 BitSet optionals = new BitSet();
10946 if (struct.isSetProjectName()) {
10947 optionals.set(0);
10948 }
10949 if (struct.isSetRepositoryName()) {
10950 optionals.set(1);
10951 }
10952 oprot.writeBitSet(optionals, 2);
10953 if (struct.isSetProjectName()) {
10954 oprot.writeString(struct.projectName);
10955 }
10956 if (struct.isSetRepositoryName()) {
10957 oprot.writeString(struct.repositoryName);
10958 }
10959 }
10960
10961 @Override
10962 public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException {
10963 TTupleProtocol iprot = (TTupleProtocol) prot;
10964 BitSet incoming = iprot.readBitSet(2);
10965 if (incoming.get(0)) {
10966 struct.projectName = iprot.readString();
10967 struct.setProjectNameIsSet(true);
10968 }
10969 if (incoming.get(1)) {
10970 struct.repositoryName = iprot.readString();
10971 struct.setRepositoryNameIsSet(true);
10972 }
10973 }
10974 }
10975
10976 }
10977
10978 public static class createRepository_result implements org.apache.thrift.TBase<createRepository_result, createRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<createRepository_result> {
10979 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_result");
10980
10981 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10982
10983 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10984 static {
10985 schemes.put(StandardScheme.class, new createRepository_resultStandardSchemeFactory());
10986 schemes.put(TupleScheme.class, new createRepository_resultTupleSchemeFactory());
10987 }
10988
10989 public CentralDogmaException e;
10990
10991
10992 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10993 E((short)1, "e");
10994
10995 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10996
10997 static {
10998 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10999 byName.put(field.getFieldName(), field);
11000 }
11001 }
11002
11003
11004
11005
11006 public static _Fields findByThriftId(int fieldId) {
11007 switch(fieldId) {
11008 case 1:
11009 return E;
11010 default:
11011 return null;
11012 }
11013 }
11014
11015
11016
11017
11018
11019 public static _Fields findByThriftIdOrThrow(int fieldId) {
11020 _Fields fields = findByThriftId(fieldId);
11021 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11022 return fields;
11023 }
11024
11025
11026
11027
11028 public static _Fields findByName(String name) {
11029 return byName.get(name);
11030 }
11031
11032 private final short _thriftId;
11033 private final String _fieldName;
11034
11035 _Fields(short thriftId, String fieldName) {
11036 _thriftId = thriftId;
11037 _fieldName = fieldName;
11038 }
11039
11040 public short getThriftFieldId() {
11041 return _thriftId;
11042 }
11043
11044 public String getFieldName() {
11045 return _fieldName;
11046 }
11047 }
11048
11049
11050 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11051 static {
11052 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11053 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
11054 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11055 metaDataMap = Collections.unmodifiableMap(tmpMap);
11056 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRepository_result.class, metaDataMap);
11057 }
11058
11059 public createRepository_result() {
11060 }
11061
11062 public createRepository_result(
11063 CentralDogmaException e)
11064 {
11065 this();
11066 this.e = e;
11067 }
11068
11069
11070
11071
11072 public createRepository_result(createRepository_result other) {
11073 if (other.isSetE()) {
11074 this.e = new CentralDogmaException(other.e);
11075 }
11076 }
11077
11078 public createRepository_result deepCopy() {
11079 return new createRepository_result(this);
11080 }
11081
11082 @Override
11083 public void clear() {
11084 this.e = null;
11085 }
11086
11087 public CentralDogmaException getE() {
11088 return this.e;
11089 }
11090
11091 public createRepository_result setE(CentralDogmaException e) {
11092 this.e = e;
11093 return this;
11094 }
11095
11096 public void unsetE() {
11097 this.e = null;
11098 }
11099
11100
11101 public boolean isSetE() {
11102 return this.e != null;
11103 }
11104
11105 public void setEIsSet(boolean value) {
11106 if (!value) {
11107 this.e = null;
11108 }
11109 }
11110
11111 public void setFieldValue(_Fields field, Object value) {
11112 switch (field) {
11113 case E:
11114 if (value == null) {
11115 unsetE();
11116 } else {
11117 setE((CentralDogmaException)value);
11118 }
11119 break;
11120
11121 }
11122 }
11123
11124 public Object getFieldValue(_Fields field) {
11125 switch (field) {
11126 case E:
11127 return getE();
11128
11129 }
11130 throw new IllegalStateException();
11131 }
11132
11133
11134 public boolean isSet(_Fields field) {
11135 if (field == null) {
11136 throw new IllegalArgumentException();
11137 }
11138
11139 switch (field) {
11140 case E:
11141 return isSetE();
11142 }
11143 throw new IllegalStateException();
11144 }
11145
11146 @Override
11147 public boolean equals(Object that) {
11148 if (that == null)
11149 return false;
11150 if (that instanceof createRepository_result)
11151 return this.equals((createRepository_result)that);
11152 return false;
11153 }
11154
11155 public boolean equals(createRepository_result that) {
11156 if (that == null)
11157 return false;
11158
11159 boolean this_present_e = true && this.isSetE();
11160 boolean that_present_e = true && that.isSetE();
11161 if (this_present_e || that_present_e) {
11162 if (!(this_present_e && that_present_e))
11163 return false;
11164 if (!this.e.equals(that.e))
11165 return false;
11166 }
11167
11168 return true;
11169 }
11170
11171 @Override
11172 public int hashCode() {
11173 List<Object> list = new ArrayList<Object>();
11174
11175 boolean present_e = true && (isSetE());
11176 list.add(present_e);
11177 if (present_e)
11178 list.add(e);
11179
11180 return list.hashCode();
11181 }
11182
11183 @Override
11184 public int compareTo(createRepository_result other) {
11185 if (!getClass().equals(other.getClass())) {
11186 return getClass().getName().compareTo(other.getClass().getName());
11187 }
11188
11189 int lastComparison = 0;
11190
11191 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
11192 if (lastComparison != 0) {
11193 return lastComparison;
11194 }
11195 if (isSetE()) {
11196 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
11197 if (lastComparison != 0) {
11198 return lastComparison;
11199 }
11200 }
11201 return 0;
11202 }
11203
11204 public _Fields fieldForId(int fieldId) {
11205 return _Fields.findByThriftId(fieldId);
11206 }
11207
11208 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11209 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11210 }
11211
11212 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11213 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11214 }
11215
11216 @Override
11217 public String toString() {
11218 StringBuilder sb = new StringBuilder("createRepository_result(");
11219 boolean first = true;
11220
11221 sb.append("e:");
11222 if (this.e == null) {
11223 sb.append("null");
11224 } else {
11225 sb.append(this.e);
11226 }
11227 first = false;
11228 sb.append(")");
11229 return sb.toString();
11230 }
11231
11232 public void validate() throws org.apache.thrift.TException {
11233
11234
11235 }
11236
11237 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11238 try {
11239 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11240 } catch (org.apache.thrift.TException te) {
11241 throw new java.io.IOException(te);
11242 }
11243 }
11244
11245 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11246 try {
11247 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11248 } catch (org.apache.thrift.TException te) {
11249 throw new java.io.IOException(te);
11250 }
11251 }
11252
11253 private static class createRepository_resultStandardSchemeFactory implements SchemeFactory {
11254 public createRepository_resultStandardScheme getScheme() {
11255 return new createRepository_resultStandardScheme();
11256 }
11257 }
11258
11259 private static class createRepository_resultStandardScheme extends StandardScheme<createRepository_result> {
11260
11261 public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_result struct) throws org.apache.thrift.TException {
11262 org.apache.thrift.protocol.TField schemeField;
11263 iprot.readStructBegin();
11264 while (true)
11265 {
11266 schemeField = iprot.readFieldBegin();
11267 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11268 break;
11269 }
11270 switch (schemeField.id) {
11271 case 1:
11272 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11273 struct.e = new CentralDogmaException();
11274 struct.e.read(iprot);
11275 struct.setEIsSet(true);
11276 } else {
11277 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11278 }
11279 break;
11280 default:
11281 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11282 }
11283 iprot.readFieldEnd();
11284 }
11285 iprot.readStructEnd();
11286
11287
11288 struct.validate();
11289 }
11290
11291 public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_result struct) throws org.apache.thrift.TException {
11292 struct.validate();
11293
11294 oprot.writeStructBegin(STRUCT_DESC);
11295 if (struct.e != null) {
11296 oprot.writeFieldBegin(E_FIELD_DESC);
11297 struct.e.write(oprot);
11298 oprot.writeFieldEnd();
11299 }
11300 oprot.writeFieldStop();
11301 oprot.writeStructEnd();
11302 }
11303
11304 }
11305
11306 private static class createRepository_resultTupleSchemeFactory implements SchemeFactory {
11307 public createRepository_resultTupleScheme getScheme() {
11308 return new createRepository_resultTupleScheme();
11309 }
11310 }
11311
11312 private static class createRepository_resultTupleScheme extends TupleScheme<createRepository_result> {
11313
11314 @Override
11315 public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException {
11316 TTupleProtocol oprot = (TTupleProtocol) prot;
11317 BitSet optionals = new BitSet();
11318 if (struct.isSetE()) {
11319 optionals.set(0);
11320 }
11321 oprot.writeBitSet(optionals, 1);
11322 if (struct.isSetE()) {
11323 struct.e.write(oprot);
11324 }
11325 }
11326
11327 @Override
11328 public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException {
11329 TTupleProtocol iprot = (TTupleProtocol) prot;
11330 BitSet incoming = iprot.readBitSet(1);
11331 if (incoming.get(0)) {
11332 struct.e = new CentralDogmaException();
11333 struct.e.read(iprot);
11334 struct.setEIsSet(true);
11335 }
11336 }
11337 }
11338
11339 }
11340
11341 public static class removeRepository_args implements org.apache.thrift.TBase<removeRepository_args, removeRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeRepository_args> {
11342 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_args");
11343
11344 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
11345 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
11346
11347 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11348 static {
11349 schemes.put(StandardScheme.class, new removeRepository_argsStandardSchemeFactory());
11350 schemes.put(TupleScheme.class, new removeRepository_argsTupleSchemeFactory());
11351 }
11352
11353 public String projectName;
11354 public String repositoryName;
11355
11356
11357 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11358 PROJECT_NAME((short)1, "projectName"),
11359 REPOSITORY_NAME((short)2, "repositoryName");
11360
11361 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11362
11363 static {
11364 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11365 byName.put(field.getFieldName(), field);
11366 }
11367 }
11368
11369
11370
11371
11372 public static _Fields findByThriftId(int fieldId) {
11373 switch(fieldId) {
11374 case 1:
11375 return PROJECT_NAME;
11376 case 2:
11377 return REPOSITORY_NAME;
11378 default:
11379 return null;
11380 }
11381 }
11382
11383
11384
11385
11386
11387 public static _Fields findByThriftIdOrThrow(int fieldId) {
11388 _Fields fields = findByThriftId(fieldId);
11389 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11390 return fields;
11391 }
11392
11393
11394
11395
11396 public static _Fields findByName(String name) {
11397 return byName.get(name);
11398 }
11399
11400 private final short _thriftId;
11401 private final String _fieldName;
11402
11403 _Fields(short thriftId, String fieldName) {
11404 _thriftId = thriftId;
11405 _fieldName = fieldName;
11406 }
11407
11408 public short getThriftFieldId() {
11409 return _thriftId;
11410 }
11411
11412 public String getFieldName() {
11413 return _fieldName;
11414 }
11415 }
11416
11417
11418 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11419 static {
11420 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11421 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
11422 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11423 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
11424 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11425 metaDataMap = Collections.unmodifiableMap(tmpMap);
11426 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeRepository_args.class, metaDataMap);
11427 }
11428
11429 public removeRepository_args() {
11430 }
11431
11432 public removeRepository_args(
11433 String projectName,
11434 String repositoryName)
11435 {
11436 this();
11437 this.projectName = projectName;
11438 this.repositoryName = repositoryName;
11439 }
11440
11441
11442
11443
11444 public removeRepository_args(removeRepository_args other) {
11445 if (other.isSetProjectName()) {
11446 this.projectName = other.projectName;
11447 }
11448 if (other.isSetRepositoryName()) {
11449 this.repositoryName = other.repositoryName;
11450 }
11451 }
11452
11453 public removeRepository_args deepCopy() {
11454 return new removeRepository_args(this);
11455 }
11456
11457 @Override
11458 public void clear() {
11459 this.projectName = null;
11460 this.repositoryName = null;
11461 }
11462
11463 public String getProjectName() {
11464 return this.projectName;
11465 }
11466
11467 public removeRepository_args setProjectName(String projectName) {
11468 this.projectName = projectName;
11469 return this;
11470 }
11471
11472 public void unsetProjectName() {
11473 this.projectName = null;
11474 }
11475
11476
11477 public boolean isSetProjectName() {
11478 return this.projectName != null;
11479 }
11480
11481 public void setProjectNameIsSet(boolean value) {
11482 if (!value) {
11483 this.projectName = null;
11484 }
11485 }
11486
11487 public String getRepositoryName() {
11488 return this.repositoryName;
11489 }
11490
11491 public removeRepository_args setRepositoryName(String repositoryName) {
11492 this.repositoryName = repositoryName;
11493 return this;
11494 }
11495
11496 public void unsetRepositoryName() {
11497 this.repositoryName = null;
11498 }
11499
11500
11501 public boolean isSetRepositoryName() {
11502 return this.repositoryName != null;
11503 }
11504
11505 public void setRepositoryNameIsSet(boolean value) {
11506 if (!value) {
11507 this.repositoryName = null;
11508 }
11509 }
11510
11511 public void setFieldValue(_Fields field, Object value) {
11512 switch (field) {
11513 case PROJECT_NAME:
11514 if (value == null) {
11515 unsetProjectName();
11516 } else {
11517 setProjectName((String)value);
11518 }
11519 break;
11520
11521 case REPOSITORY_NAME:
11522 if (value == null) {
11523 unsetRepositoryName();
11524 } else {
11525 setRepositoryName((String)value);
11526 }
11527 break;
11528
11529 }
11530 }
11531
11532 public Object getFieldValue(_Fields field) {
11533 switch (field) {
11534 case PROJECT_NAME:
11535 return getProjectName();
11536
11537 case REPOSITORY_NAME:
11538 return getRepositoryName();
11539
11540 }
11541 throw new IllegalStateException();
11542 }
11543
11544
11545 public boolean isSet(_Fields field) {
11546 if (field == null) {
11547 throw new IllegalArgumentException();
11548 }
11549
11550 switch (field) {
11551 case PROJECT_NAME:
11552 return isSetProjectName();
11553 case REPOSITORY_NAME:
11554 return isSetRepositoryName();
11555 }
11556 throw new IllegalStateException();
11557 }
11558
11559 @Override
11560 public boolean equals(Object that) {
11561 if (that == null)
11562 return false;
11563 if (that instanceof removeRepository_args)
11564 return this.equals((removeRepository_args)that);
11565 return false;
11566 }
11567
11568 public boolean equals(removeRepository_args that) {
11569 if (that == null)
11570 return false;
11571
11572 boolean this_present_projectName = true && this.isSetProjectName();
11573 boolean that_present_projectName = true && that.isSetProjectName();
11574 if (this_present_projectName || that_present_projectName) {
11575 if (!(this_present_projectName && that_present_projectName))
11576 return false;
11577 if (!this.projectName.equals(that.projectName))
11578 return false;
11579 }
11580
11581 boolean this_present_repositoryName = true && this.isSetRepositoryName();
11582 boolean that_present_repositoryName = true && that.isSetRepositoryName();
11583 if (this_present_repositoryName || that_present_repositoryName) {
11584 if (!(this_present_repositoryName && that_present_repositoryName))
11585 return false;
11586 if (!this.repositoryName.equals(that.repositoryName))
11587 return false;
11588 }
11589
11590 return true;
11591 }
11592
11593 @Override
11594 public int hashCode() {
11595 List<Object> list = new ArrayList<Object>();
11596
11597 boolean present_projectName = true && (isSetProjectName());
11598 list.add(present_projectName);
11599 if (present_projectName)
11600 list.add(projectName);
11601
11602 boolean present_repositoryName = true && (isSetRepositoryName());
11603 list.add(present_repositoryName);
11604 if (present_repositoryName)
11605 list.add(repositoryName);
11606
11607 return list.hashCode();
11608 }
11609
11610 @Override
11611 public int compareTo(removeRepository_args other) {
11612 if (!getClass().equals(other.getClass())) {
11613 return getClass().getName().compareTo(other.getClass().getName());
11614 }
11615
11616 int lastComparison = 0;
11617
11618 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
11619 if (lastComparison != 0) {
11620 return lastComparison;
11621 }
11622 if (isSetProjectName()) {
11623 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
11624 if (lastComparison != 0) {
11625 return lastComparison;
11626 }
11627 }
11628 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
11629 if (lastComparison != 0) {
11630 return lastComparison;
11631 }
11632 if (isSetRepositoryName()) {
11633 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
11634 if (lastComparison != 0) {
11635 return lastComparison;
11636 }
11637 }
11638 return 0;
11639 }
11640
11641 public _Fields fieldForId(int fieldId) {
11642 return _Fields.findByThriftId(fieldId);
11643 }
11644
11645 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11646 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11647 }
11648
11649 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11650 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11651 }
11652
11653 @Override
11654 public String toString() {
11655 StringBuilder sb = new StringBuilder("removeRepository_args(");
11656 boolean first = true;
11657
11658 sb.append("projectName:");
11659 if (this.projectName == null) {
11660 sb.append("null");
11661 } else {
11662 sb.append(this.projectName);
11663 }
11664 first = false;
11665 if (!first) sb.append(", ");
11666 sb.append("repositoryName:");
11667 if (this.repositoryName == null) {
11668 sb.append("null");
11669 } else {
11670 sb.append(this.repositoryName);
11671 }
11672 first = false;
11673 sb.append(")");
11674 return sb.toString();
11675 }
11676
11677 public void validate() throws org.apache.thrift.TException {
11678
11679
11680 }
11681
11682 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11683 try {
11684 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11685 } catch (org.apache.thrift.TException te) {
11686 throw new java.io.IOException(te);
11687 }
11688 }
11689
11690 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11691 try {
11692 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11693 } catch (org.apache.thrift.TException te) {
11694 throw new java.io.IOException(te);
11695 }
11696 }
11697
11698 private static class removeRepository_argsStandardSchemeFactory implements SchemeFactory {
11699 public removeRepository_argsStandardScheme getScheme() {
11700 return new removeRepository_argsStandardScheme();
11701 }
11702 }
11703
11704 private static class removeRepository_argsStandardScheme extends StandardScheme<removeRepository_args> {
11705
11706 public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_args struct) throws org.apache.thrift.TException {
11707 org.apache.thrift.protocol.TField schemeField;
11708 iprot.readStructBegin();
11709 while (true)
11710 {
11711 schemeField = iprot.readFieldBegin();
11712 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11713 break;
11714 }
11715 switch (schemeField.id) {
11716 case 1:
11717 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11718 struct.projectName = iprot.readString();
11719 struct.setProjectNameIsSet(true);
11720 } else {
11721 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11722 }
11723 break;
11724 case 2:
11725 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11726 struct.repositoryName = iprot.readString();
11727 struct.setRepositoryNameIsSet(true);
11728 } else {
11729 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11730 }
11731 break;
11732 default:
11733 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11734 }
11735 iprot.readFieldEnd();
11736 }
11737 iprot.readStructEnd();
11738
11739
11740 struct.validate();
11741 }
11742
11743 public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_args struct) throws org.apache.thrift.TException {
11744 struct.validate();
11745
11746 oprot.writeStructBegin(STRUCT_DESC);
11747 if (struct.projectName != null) {
11748 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
11749 oprot.writeString(struct.projectName);
11750 oprot.writeFieldEnd();
11751 }
11752 if (struct.repositoryName != null) {
11753 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
11754 oprot.writeString(struct.repositoryName);
11755 oprot.writeFieldEnd();
11756 }
11757 oprot.writeFieldStop();
11758 oprot.writeStructEnd();
11759 }
11760
11761 }
11762
11763 private static class removeRepository_argsTupleSchemeFactory implements SchemeFactory {
11764 public removeRepository_argsTupleScheme getScheme() {
11765 return new removeRepository_argsTupleScheme();
11766 }
11767 }
11768
11769 private static class removeRepository_argsTupleScheme extends TupleScheme<removeRepository_args> {
11770
11771 @Override
11772 public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException {
11773 TTupleProtocol oprot = (TTupleProtocol) prot;
11774 BitSet optionals = new BitSet();
11775 if (struct.isSetProjectName()) {
11776 optionals.set(0);
11777 }
11778 if (struct.isSetRepositoryName()) {
11779 optionals.set(1);
11780 }
11781 oprot.writeBitSet(optionals, 2);
11782 if (struct.isSetProjectName()) {
11783 oprot.writeString(struct.projectName);
11784 }
11785 if (struct.isSetRepositoryName()) {
11786 oprot.writeString(struct.repositoryName);
11787 }
11788 }
11789
11790 @Override
11791 public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException {
11792 TTupleProtocol iprot = (TTupleProtocol) prot;
11793 BitSet incoming = iprot.readBitSet(2);
11794 if (incoming.get(0)) {
11795 struct.projectName = iprot.readString();
11796 struct.setProjectNameIsSet(true);
11797 }
11798 if (incoming.get(1)) {
11799 struct.repositoryName = iprot.readString();
11800 struct.setRepositoryNameIsSet(true);
11801 }
11802 }
11803 }
11804
11805 }
11806
11807 public static class removeRepository_result implements org.apache.thrift.TBase<removeRepository_result, removeRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeRepository_result> {
11808 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_result");
11809
11810 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11811
11812 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11813 static {
11814 schemes.put(StandardScheme.class, new removeRepository_resultStandardSchemeFactory());
11815 schemes.put(TupleScheme.class, new removeRepository_resultTupleSchemeFactory());
11816 }
11817
11818 public CentralDogmaException e;
11819
11820
11821 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11822 E((short)1, "e");
11823
11824 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11825
11826 static {
11827 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11828 byName.put(field.getFieldName(), field);
11829 }
11830 }
11831
11832
11833
11834
11835 public static _Fields findByThriftId(int fieldId) {
11836 switch(fieldId) {
11837 case 1:
11838 return E;
11839 default:
11840 return null;
11841 }
11842 }
11843
11844
11845
11846
11847
11848 public static _Fields findByThriftIdOrThrow(int fieldId) {
11849 _Fields fields = findByThriftId(fieldId);
11850 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11851 return fields;
11852 }
11853
11854
11855
11856
11857 public static _Fields findByName(String name) {
11858 return byName.get(name);
11859 }
11860
11861 private final short _thriftId;
11862 private final String _fieldName;
11863
11864 _Fields(short thriftId, String fieldName) {
11865 _thriftId = thriftId;
11866 _fieldName = fieldName;
11867 }
11868
11869 public short getThriftFieldId() {
11870 return _thriftId;
11871 }
11872
11873 public String getFieldName() {
11874 return _fieldName;
11875 }
11876 }
11877
11878
11879 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11880 static {
11881 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11882 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
11883 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11884 metaDataMap = Collections.unmodifiableMap(tmpMap);
11885 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeRepository_result.class, metaDataMap);
11886 }
11887
11888 public removeRepository_result() {
11889 }
11890
11891 public removeRepository_result(
11892 CentralDogmaException e)
11893 {
11894 this();
11895 this.e = e;
11896 }
11897
11898
11899
11900
11901 public removeRepository_result(removeRepository_result other) {
11902 if (other.isSetE()) {
11903 this.e = new CentralDogmaException(other.e);
11904 }
11905 }
11906
11907 public removeRepository_result deepCopy() {
11908 return new removeRepository_result(this);
11909 }
11910
11911 @Override
11912 public void clear() {
11913 this.e = null;
11914 }
11915
11916 public CentralDogmaException getE() {
11917 return this.e;
11918 }
11919
11920 public removeRepository_result setE(CentralDogmaException e) {
11921 this.e = e;
11922 return this;
11923 }
11924
11925 public void unsetE() {
11926 this.e = null;
11927 }
11928
11929
11930 public boolean isSetE() {
11931 return this.e != null;
11932 }
11933
11934 public void setEIsSet(boolean value) {
11935 if (!value) {
11936 this.e = null;
11937 }
11938 }
11939
11940 public void setFieldValue(_Fields field, Object value) {
11941 switch (field) {
11942 case E:
11943 if (value == null) {
11944 unsetE();
11945 } else {
11946 setE((CentralDogmaException)value);
11947 }
11948 break;
11949
11950 }
11951 }
11952
11953 public Object getFieldValue(_Fields field) {
11954 switch (field) {
11955 case E:
11956 return getE();
11957
11958 }
11959 throw new IllegalStateException();
11960 }
11961
11962
11963 public boolean isSet(_Fields field) {
11964 if (field == null) {
11965 throw new IllegalArgumentException();
11966 }
11967
11968 switch (field) {
11969 case E:
11970 return isSetE();
11971 }
11972 throw new IllegalStateException();
11973 }
11974
11975 @Override
11976 public boolean equals(Object that) {
11977 if (that == null)
11978 return false;
11979 if (that instanceof removeRepository_result)
11980 return this.equals((removeRepository_result)that);
11981 return false;
11982 }
11983
11984 public boolean equals(removeRepository_result that) {
11985 if (that == null)
11986 return false;
11987
11988 boolean this_present_e = true && this.isSetE();
11989 boolean that_present_e = true && that.isSetE();
11990 if (this_present_e || that_present_e) {
11991 if (!(this_present_e && that_present_e))
11992 return false;
11993 if (!this.e.equals(that.e))
11994 return false;
11995 }
11996
11997 return true;
11998 }
11999
12000 @Override
12001 public int hashCode() {
12002 List<Object> list = new ArrayList<Object>();
12003
12004 boolean present_e = true && (isSetE());
12005 list.add(present_e);
12006 if (present_e)
12007 list.add(e);
12008
12009 return list.hashCode();
12010 }
12011
12012 @Override
12013 public int compareTo(removeRepository_result other) {
12014 if (!getClass().equals(other.getClass())) {
12015 return getClass().getName().compareTo(other.getClass().getName());
12016 }
12017
12018 int lastComparison = 0;
12019
12020 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
12021 if (lastComparison != 0) {
12022 return lastComparison;
12023 }
12024 if (isSetE()) {
12025 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
12026 if (lastComparison != 0) {
12027 return lastComparison;
12028 }
12029 }
12030 return 0;
12031 }
12032
12033 public _Fields fieldForId(int fieldId) {
12034 return _Fields.findByThriftId(fieldId);
12035 }
12036
12037 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12038 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12039 }
12040
12041 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12042 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12043 }
12044
12045 @Override
12046 public String toString() {
12047 StringBuilder sb = new StringBuilder("removeRepository_result(");
12048 boolean first = true;
12049
12050 sb.append("e:");
12051 if (this.e == null) {
12052 sb.append("null");
12053 } else {
12054 sb.append(this.e);
12055 }
12056 first = false;
12057 sb.append(")");
12058 return sb.toString();
12059 }
12060
12061 public void validate() throws org.apache.thrift.TException {
12062
12063
12064 }
12065
12066 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12067 try {
12068 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12069 } catch (org.apache.thrift.TException te) {
12070 throw new java.io.IOException(te);
12071 }
12072 }
12073
12074 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12075 try {
12076 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12077 } catch (org.apache.thrift.TException te) {
12078 throw new java.io.IOException(te);
12079 }
12080 }
12081
12082 private static class removeRepository_resultStandardSchemeFactory implements SchemeFactory {
12083 public removeRepository_resultStandardScheme getScheme() {
12084 return new removeRepository_resultStandardScheme();
12085 }
12086 }
12087
12088 private static class removeRepository_resultStandardScheme extends StandardScheme<removeRepository_result> {
12089
12090 public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_result struct) throws org.apache.thrift.TException {
12091 org.apache.thrift.protocol.TField schemeField;
12092 iprot.readStructBegin();
12093 while (true)
12094 {
12095 schemeField = iprot.readFieldBegin();
12096 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12097 break;
12098 }
12099 switch (schemeField.id) {
12100 case 1:
12101 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12102 struct.e = new CentralDogmaException();
12103 struct.e.read(iprot);
12104 struct.setEIsSet(true);
12105 } else {
12106 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12107 }
12108 break;
12109 default:
12110 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12111 }
12112 iprot.readFieldEnd();
12113 }
12114 iprot.readStructEnd();
12115
12116
12117 struct.validate();
12118 }
12119
12120 public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_result struct) throws org.apache.thrift.TException {
12121 struct.validate();
12122
12123 oprot.writeStructBegin(STRUCT_DESC);
12124 if (struct.e != null) {
12125 oprot.writeFieldBegin(E_FIELD_DESC);
12126 struct.e.write(oprot);
12127 oprot.writeFieldEnd();
12128 }
12129 oprot.writeFieldStop();
12130 oprot.writeStructEnd();
12131 }
12132
12133 }
12134
12135 private static class removeRepository_resultTupleSchemeFactory implements SchemeFactory {
12136 public removeRepository_resultTupleScheme getScheme() {
12137 return new removeRepository_resultTupleScheme();
12138 }
12139 }
12140
12141 private static class removeRepository_resultTupleScheme extends TupleScheme<removeRepository_result> {
12142
12143 @Override
12144 public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException {
12145 TTupleProtocol oprot = (TTupleProtocol) prot;
12146 BitSet optionals = new BitSet();
12147 if (struct.isSetE()) {
12148 optionals.set(0);
12149 }
12150 oprot.writeBitSet(optionals, 1);
12151 if (struct.isSetE()) {
12152 struct.e.write(oprot);
12153 }
12154 }
12155
12156 @Override
12157 public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException {
12158 TTupleProtocol iprot = (TTupleProtocol) prot;
12159 BitSet incoming = iprot.readBitSet(1);
12160 if (incoming.get(0)) {
12161 struct.e = new CentralDogmaException();
12162 struct.e.read(iprot);
12163 struct.setEIsSet(true);
12164 }
12165 }
12166 }
12167
12168 }
12169
12170 public static class purgeRepository_args implements org.apache.thrift.TBase<purgeRepository_args, purgeRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<purgeRepository_args> {
12171 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeRepository_args");
12172
12173 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
12174 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
12175
12176 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12177 static {
12178 schemes.put(StandardScheme.class, new purgeRepository_argsStandardSchemeFactory());
12179 schemes.put(TupleScheme.class, new purgeRepository_argsTupleSchemeFactory());
12180 }
12181
12182 public String projectName;
12183 public String repositoryName;
12184
12185
12186 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12187 PROJECT_NAME((short)1, "projectName"),
12188 REPOSITORY_NAME((short)2, "repositoryName");
12189
12190 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12191
12192 static {
12193 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12194 byName.put(field.getFieldName(), field);
12195 }
12196 }
12197
12198
12199
12200
12201 public static _Fields findByThriftId(int fieldId) {
12202 switch(fieldId) {
12203 case 1:
12204 return PROJECT_NAME;
12205 case 2:
12206 return REPOSITORY_NAME;
12207 default:
12208 return null;
12209 }
12210 }
12211
12212
12213
12214
12215
12216 public static _Fields findByThriftIdOrThrow(int fieldId) {
12217 _Fields fields = findByThriftId(fieldId);
12218 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12219 return fields;
12220 }
12221
12222
12223
12224
12225 public static _Fields findByName(String name) {
12226 return byName.get(name);
12227 }
12228
12229 private final short _thriftId;
12230 private final String _fieldName;
12231
12232 _Fields(short thriftId, String fieldName) {
12233 _thriftId = thriftId;
12234 _fieldName = fieldName;
12235 }
12236
12237 public short getThriftFieldId() {
12238 return _thriftId;
12239 }
12240
12241 public String getFieldName() {
12242 return _fieldName;
12243 }
12244 }
12245
12246
12247 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12248 static {
12249 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12250 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
12251 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12252 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
12253 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12254 metaDataMap = Collections.unmodifiableMap(tmpMap);
12255 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(purgeRepository_args.class, metaDataMap);
12256 }
12257
12258 public purgeRepository_args() {
12259 }
12260
12261 public purgeRepository_args(
12262 String projectName,
12263 String repositoryName)
12264 {
12265 this();
12266 this.projectName = projectName;
12267 this.repositoryName = repositoryName;
12268 }
12269
12270
12271
12272
12273 public purgeRepository_args(purgeRepository_args other) {
12274 if (other.isSetProjectName()) {
12275 this.projectName = other.projectName;
12276 }
12277 if (other.isSetRepositoryName()) {
12278 this.repositoryName = other.repositoryName;
12279 }
12280 }
12281
12282 public purgeRepository_args deepCopy() {
12283 return new purgeRepository_args(this);
12284 }
12285
12286 @Override
12287 public void clear() {
12288 this.projectName = null;
12289 this.repositoryName = null;
12290 }
12291
12292 public String getProjectName() {
12293 return this.projectName;
12294 }
12295
12296 public purgeRepository_args setProjectName(String projectName) {
12297 this.projectName = projectName;
12298 return this;
12299 }
12300
12301 public void unsetProjectName() {
12302 this.projectName = null;
12303 }
12304
12305
12306 public boolean isSetProjectName() {
12307 return this.projectName != null;
12308 }
12309
12310 public void setProjectNameIsSet(boolean value) {
12311 if (!value) {
12312 this.projectName = null;
12313 }
12314 }
12315
12316 public String getRepositoryName() {
12317 return this.repositoryName;
12318 }
12319
12320 public purgeRepository_args setRepositoryName(String repositoryName) {
12321 this.repositoryName = repositoryName;
12322 return this;
12323 }
12324
12325 public void unsetRepositoryName() {
12326 this.repositoryName = null;
12327 }
12328
12329
12330 public boolean isSetRepositoryName() {
12331 return this.repositoryName != null;
12332 }
12333
12334 public void setRepositoryNameIsSet(boolean value) {
12335 if (!value) {
12336 this.repositoryName = null;
12337 }
12338 }
12339
12340 public void setFieldValue(_Fields field, Object value) {
12341 switch (field) {
12342 case PROJECT_NAME:
12343 if (value == null) {
12344 unsetProjectName();
12345 } else {
12346 setProjectName((String)value);
12347 }
12348 break;
12349
12350 case REPOSITORY_NAME:
12351 if (value == null) {
12352 unsetRepositoryName();
12353 } else {
12354 setRepositoryName((String)value);
12355 }
12356 break;
12357
12358 }
12359 }
12360
12361 public Object getFieldValue(_Fields field) {
12362 switch (field) {
12363 case PROJECT_NAME:
12364 return getProjectName();
12365
12366 case REPOSITORY_NAME:
12367 return getRepositoryName();
12368
12369 }
12370 throw new IllegalStateException();
12371 }
12372
12373
12374 public boolean isSet(_Fields field) {
12375 if (field == null) {
12376 throw new IllegalArgumentException();
12377 }
12378
12379 switch (field) {
12380 case PROJECT_NAME:
12381 return isSetProjectName();
12382 case REPOSITORY_NAME:
12383 return isSetRepositoryName();
12384 }
12385 throw new IllegalStateException();
12386 }
12387
12388 @Override
12389 public boolean equals(Object that) {
12390 if (that == null)
12391 return false;
12392 if (that instanceof purgeRepository_args)
12393 return this.equals((purgeRepository_args)that);
12394 return false;
12395 }
12396
12397 public boolean equals(purgeRepository_args that) {
12398 if (that == null)
12399 return false;
12400
12401 boolean this_present_projectName = true && this.isSetProjectName();
12402 boolean that_present_projectName = true && that.isSetProjectName();
12403 if (this_present_projectName || that_present_projectName) {
12404 if (!(this_present_projectName && that_present_projectName))
12405 return false;
12406 if (!this.projectName.equals(that.projectName))
12407 return false;
12408 }
12409
12410 boolean this_present_repositoryName = true && this.isSetRepositoryName();
12411 boolean that_present_repositoryName = true && that.isSetRepositoryName();
12412 if (this_present_repositoryName || that_present_repositoryName) {
12413 if (!(this_present_repositoryName && that_present_repositoryName))
12414 return false;
12415 if (!this.repositoryName.equals(that.repositoryName))
12416 return false;
12417 }
12418
12419 return true;
12420 }
12421
12422 @Override
12423 public int hashCode() {
12424 List<Object> list = new ArrayList<Object>();
12425
12426 boolean present_projectName = true && (isSetProjectName());
12427 list.add(present_projectName);
12428 if (present_projectName)
12429 list.add(projectName);
12430
12431 boolean present_repositoryName = true && (isSetRepositoryName());
12432 list.add(present_repositoryName);
12433 if (present_repositoryName)
12434 list.add(repositoryName);
12435
12436 return list.hashCode();
12437 }
12438
12439 @Override
12440 public int compareTo(purgeRepository_args other) {
12441 if (!getClass().equals(other.getClass())) {
12442 return getClass().getName().compareTo(other.getClass().getName());
12443 }
12444
12445 int lastComparison = 0;
12446
12447 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
12448 if (lastComparison != 0) {
12449 return lastComparison;
12450 }
12451 if (isSetProjectName()) {
12452 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
12453 if (lastComparison != 0) {
12454 return lastComparison;
12455 }
12456 }
12457 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
12458 if (lastComparison != 0) {
12459 return lastComparison;
12460 }
12461 if (isSetRepositoryName()) {
12462 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
12463 if (lastComparison != 0) {
12464 return lastComparison;
12465 }
12466 }
12467 return 0;
12468 }
12469
12470 public _Fields fieldForId(int fieldId) {
12471 return _Fields.findByThriftId(fieldId);
12472 }
12473
12474 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12475 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12476 }
12477
12478 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12479 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12480 }
12481
12482 @Override
12483 public String toString() {
12484 StringBuilder sb = new StringBuilder("purgeRepository_args(");
12485 boolean first = true;
12486
12487 sb.append("projectName:");
12488 if (this.projectName == null) {
12489 sb.append("null");
12490 } else {
12491 sb.append(this.projectName);
12492 }
12493 first = false;
12494 if (!first) sb.append(", ");
12495 sb.append("repositoryName:");
12496 if (this.repositoryName == null) {
12497 sb.append("null");
12498 } else {
12499 sb.append(this.repositoryName);
12500 }
12501 first = false;
12502 sb.append(")");
12503 return sb.toString();
12504 }
12505
12506 public void validate() throws org.apache.thrift.TException {
12507
12508
12509 }
12510
12511 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12512 try {
12513 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12514 } catch (org.apache.thrift.TException te) {
12515 throw new java.io.IOException(te);
12516 }
12517 }
12518
12519 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12520 try {
12521 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12522 } catch (org.apache.thrift.TException te) {
12523 throw new java.io.IOException(te);
12524 }
12525 }
12526
12527 private static class purgeRepository_argsStandardSchemeFactory implements SchemeFactory {
12528 public purgeRepository_argsStandardScheme getScheme() {
12529 return new purgeRepository_argsStandardScheme();
12530 }
12531 }
12532
12533 private static class purgeRepository_argsStandardScheme extends StandardScheme<purgeRepository_args> {
12534
12535 public void read(org.apache.thrift.protocol.TProtocol iprot, purgeRepository_args struct) throws org.apache.thrift.TException {
12536 org.apache.thrift.protocol.TField schemeField;
12537 iprot.readStructBegin();
12538 while (true)
12539 {
12540 schemeField = iprot.readFieldBegin();
12541 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12542 break;
12543 }
12544 switch (schemeField.id) {
12545 case 1:
12546 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12547 struct.projectName = iprot.readString();
12548 struct.setProjectNameIsSet(true);
12549 } else {
12550 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12551 }
12552 break;
12553 case 2:
12554 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12555 struct.repositoryName = iprot.readString();
12556 struct.setRepositoryNameIsSet(true);
12557 } else {
12558 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12559 }
12560 break;
12561 default:
12562 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12563 }
12564 iprot.readFieldEnd();
12565 }
12566 iprot.readStructEnd();
12567
12568
12569 struct.validate();
12570 }
12571
12572 public void write(org.apache.thrift.protocol.TProtocol oprot, purgeRepository_args struct) throws org.apache.thrift.TException {
12573 struct.validate();
12574
12575 oprot.writeStructBegin(STRUCT_DESC);
12576 if (struct.projectName != null) {
12577 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
12578 oprot.writeString(struct.projectName);
12579 oprot.writeFieldEnd();
12580 }
12581 if (struct.repositoryName != null) {
12582 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
12583 oprot.writeString(struct.repositoryName);
12584 oprot.writeFieldEnd();
12585 }
12586 oprot.writeFieldStop();
12587 oprot.writeStructEnd();
12588 }
12589
12590 }
12591
12592 private static class purgeRepository_argsTupleSchemeFactory implements SchemeFactory {
12593 public purgeRepository_argsTupleScheme getScheme() {
12594 return new purgeRepository_argsTupleScheme();
12595 }
12596 }
12597
12598 private static class purgeRepository_argsTupleScheme extends TupleScheme<purgeRepository_args> {
12599
12600 @Override
12601 public void write(org.apache.thrift.protocol.TProtocol prot, purgeRepository_args struct) throws org.apache.thrift.TException {
12602 TTupleProtocol oprot = (TTupleProtocol) prot;
12603 BitSet optionals = new BitSet();
12604 if (struct.isSetProjectName()) {
12605 optionals.set(0);
12606 }
12607 if (struct.isSetRepositoryName()) {
12608 optionals.set(1);
12609 }
12610 oprot.writeBitSet(optionals, 2);
12611 if (struct.isSetProjectName()) {
12612 oprot.writeString(struct.projectName);
12613 }
12614 if (struct.isSetRepositoryName()) {
12615 oprot.writeString(struct.repositoryName);
12616 }
12617 }
12618
12619 @Override
12620 public void read(org.apache.thrift.protocol.TProtocol prot, purgeRepository_args struct) throws org.apache.thrift.TException {
12621 TTupleProtocol iprot = (TTupleProtocol) prot;
12622 BitSet incoming = iprot.readBitSet(2);
12623 if (incoming.get(0)) {
12624 struct.projectName = iprot.readString();
12625 struct.setProjectNameIsSet(true);
12626 }
12627 if (incoming.get(1)) {
12628 struct.repositoryName = iprot.readString();
12629 struct.setRepositoryNameIsSet(true);
12630 }
12631 }
12632 }
12633
12634 }
12635
12636 public static class purgeRepository_result implements org.apache.thrift.TBase<purgeRepository_result, purgeRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<purgeRepository_result> {
12637 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeRepository_result");
12638
12639 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12640
12641 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12642 static {
12643 schemes.put(StandardScheme.class, new purgeRepository_resultStandardSchemeFactory());
12644 schemes.put(TupleScheme.class, new purgeRepository_resultTupleSchemeFactory());
12645 }
12646
12647 public CentralDogmaException e;
12648
12649
12650 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12651 E((short)1, "e");
12652
12653 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12654
12655 static {
12656 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12657 byName.put(field.getFieldName(), field);
12658 }
12659 }
12660
12661
12662
12663
12664 public static _Fields findByThriftId(int fieldId) {
12665 switch(fieldId) {
12666 case 1:
12667 return E;
12668 default:
12669 return null;
12670 }
12671 }
12672
12673
12674
12675
12676
12677 public static _Fields findByThriftIdOrThrow(int fieldId) {
12678 _Fields fields = findByThriftId(fieldId);
12679 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12680 return fields;
12681 }
12682
12683
12684
12685
12686 public static _Fields findByName(String name) {
12687 return byName.get(name);
12688 }
12689
12690 private final short _thriftId;
12691 private final String _fieldName;
12692
12693 _Fields(short thriftId, String fieldName) {
12694 _thriftId = thriftId;
12695 _fieldName = fieldName;
12696 }
12697
12698 public short getThriftFieldId() {
12699 return _thriftId;
12700 }
12701
12702 public String getFieldName() {
12703 return _fieldName;
12704 }
12705 }
12706
12707
12708 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12709 static {
12710 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12711 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
12712 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12713 metaDataMap = Collections.unmodifiableMap(tmpMap);
12714 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(purgeRepository_result.class, metaDataMap);
12715 }
12716
12717 public purgeRepository_result() {
12718 }
12719
12720 public purgeRepository_result(
12721 CentralDogmaException e)
12722 {
12723 this();
12724 this.e = e;
12725 }
12726
12727
12728
12729
12730 public purgeRepository_result(purgeRepository_result other) {
12731 if (other.isSetE()) {
12732 this.e = new CentralDogmaException(other.e);
12733 }
12734 }
12735
12736 public purgeRepository_result deepCopy() {
12737 return new purgeRepository_result(this);
12738 }
12739
12740 @Override
12741 public void clear() {
12742 this.e = null;
12743 }
12744
12745 public CentralDogmaException getE() {
12746 return this.e;
12747 }
12748
12749 public purgeRepository_result setE(CentralDogmaException e) {
12750 this.e = e;
12751 return this;
12752 }
12753
12754 public void unsetE() {
12755 this.e = null;
12756 }
12757
12758
12759 public boolean isSetE() {
12760 return this.e != null;
12761 }
12762
12763 public void setEIsSet(boolean value) {
12764 if (!value) {
12765 this.e = null;
12766 }
12767 }
12768
12769 public void setFieldValue(_Fields field, Object value) {
12770 switch (field) {
12771 case E:
12772 if (value == null) {
12773 unsetE();
12774 } else {
12775 setE((CentralDogmaException)value);
12776 }
12777 break;
12778
12779 }
12780 }
12781
12782 public Object getFieldValue(_Fields field) {
12783 switch (field) {
12784 case E:
12785 return getE();
12786
12787 }
12788 throw new IllegalStateException();
12789 }
12790
12791
12792 public boolean isSet(_Fields field) {
12793 if (field == null) {
12794 throw new IllegalArgumentException();
12795 }
12796
12797 switch (field) {
12798 case E:
12799 return isSetE();
12800 }
12801 throw new IllegalStateException();
12802 }
12803
12804 @Override
12805 public boolean equals(Object that) {
12806 if (that == null)
12807 return false;
12808 if (that instanceof purgeRepository_result)
12809 return this.equals((purgeRepository_result)that);
12810 return false;
12811 }
12812
12813 public boolean equals(purgeRepository_result that) {
12814 if (that == null)
12815 return false;
12816
12817 boolean this_present_e = true && this.isSetE();
12818 boolean that_present_e = true && that.isSetE();
12819 if (this_present_e || that_present_e) {
12820 if (!(this_present_e && that_present_e))
12821 return false;
12822 if (!this.e.equals(that.e))
12823 return false;
12824 }
12825
12826 return true;
12827 }
12828
12829 @Override
12830 public int hashCode() {
12831 List<Object> list = new ArrayList<Object>();
12832
12833 boolean present_e = true && (isSetE());
12834 list.add(present_e);
12835 if (present_e)
12836 list.add(e);
12837
12838 return list.hashCode();
12839 }
12840
12841 @Override
12842 public int compareTo(purgeRepository_result other) {
12843 if (!getClass().equals(other.getClass())) {
12844 return getClass().getName().compareTo(other.getClass().getName());
12845 }
12846
12847 int lastComparison = 0;
12848
12849 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
12850 if (lastComparison != 0) {
12851 return lastComparison;
12852 }
12853 if (isSetE()) {
12854 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
12855 if (lastComparison != 0) {
12856 return lastComparison;
12857 }
12858 }
12859 return 0;
12860 }
12861
12862 public _Fields fieldForId(int fieldId) {
12863 return _Fields.findByThriftId(fieldId);
12864 }
12865
12866 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12867 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12868 }
12869
12870 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12871 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12872 }
12873
12874 @Override
12875 public String toString() {
12876 StringBuilder sb = new StringBuilder("purgeRepository_result(");
12877 boolean first = true;
12878
12879 sb.append("e:");
12880 if (this.e == null) {
12881 sb.append("null");
12882 } else {
12883 sb.append(this.e);
12884 }
12885 first = false;
12886 sb.append(")");
12887 return sb.toString();
12888 }
12889
12890 public void validate() throws org.apache.thrift.TException {
12891
12892
12893 }
12894
12895 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12896 try {
12897 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12898 } catch (org.apache.thrift.TException te) {
12899 throw new java.io.IOException(te);
12900 }
12901 }
12902
12903 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12904 try {
12905 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12906 } catch (org.apache.thrift.TException te) {
12907 throw new java.io.IOException(te);
12908 }
12909 }
12910
12911 private static class purgeRepository_resultStandardSchemeFactory implements SchemeFactory {
12912 public purgeRepository_resultStandardScheme getScheme() {
12913 return new purgeRepository_resultStandardScheme();
12914 }
12915 }
12916
12917 private static class purgeRepository_resultStandardScheme extends StandardScheme<purgeRepository_result> {
12918
12919 public void read(org.apache.thrift.protocol.TProtocol iprot, purgeRepository_result struct) throws org.apache.thrift.TException {
12920 org.apache.thrift.protocol.TField schemeField;
12921 iprot.readStructBegin();
12922 while (true)
12923 {
12924 schemeField = iprot.readFieldBegin();
12925 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12926 break;
12927 }
12928 switch (schemeField.id) {
12929 case 1:
12930 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12931 struct.e = new CentralDogmaException();
12932 struct.e.read(iprot);
12933 struct.setEIsSet(true);
12934 } else {
12935 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12936 }
12937 break;
12938 default:
12939 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12940 }
12941 iprot.readFieldEnd();
12942 }
12943 iprot.readStructEnd();
12944
12945
12946 struct.validate();
12947 }
12948
12949 public void write(org.apache.thrift.protocol.TProtocol oprot, purgeRepository_result struct) throws org.apache.thrift.TException {
12950 struct.validate();
12951
12952 oprot.writeStructBegin(STRUCT_DESC);
12953 if (struct.e != null) {
12954 oprot.writeFieldBegin(E_FIELD_DESC);
12955 struct.e.write(oprot);
12956 oprot.writeFieldEnd();
12957 }
12958 oprot.writeFieldStop();
12959 oprot.writeStructEnd();
12960 }
12961
12962 }
12963
12964 private static class purgeRepository_resultTupleSchemeFactory implements SchemeFactory {
12965 public purgeRepository_resultTupleScheme getScheme() {
12966 return new purgeRepository_resultTupleScheme();
12967 }
12968 }
12969
12970 private static class purgeRepository_resultTupleScheme extends TupleScheme<purgeRepository_result> {
12971
12972 @Override
12973 public void write(org.apache.thrift.protocol.TProtocol prot, purgeRepository_result struct) throws org.apache.thrift.TException {
12974 TTupleProtocol oprot = (TTupleProtocol) prot;
12975 BitSet optionals = new BitSet();
12976 if (struct.isSetE()) {
12977 optionals.set(0);
12978 }
12979 oprot.writeBitSet(optionals, 1);
12980 if (struct.isSetE()) {
12981 struct.e.write(oprot);
12982 }
12983 }
12984
12985 @Override
12986 public void read(org.apache.thrift.protocol.TProtocol prot, purgeRepository_result struct) throws org.apache.thrift.TException {
12987 TTupleProtocol iprot = (TTupleProtocol) prot;
12988 BitSet incoming = iprot.readBitSet(1);
12989 if (incoming.get(0)) {
12990 struct.e = new CentralDogmaException();
12991 struct.e.read(iprot);
12992 struct.setEIsSet(true);
12993 }
12994 }
12995 }
12996
12997 }
12998
12999 public static class unremoveRepository_args implements org.apache.thrift.TBase<unremoveRepository_args, unremoveRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveRepository_args> {
13000 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_args");
13001
13002 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
13003 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
13004
13005 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13006 static {
13007 schemes.put(StandardScheme.class, new unremoveRepository_argsStandardSchemeFactory());
13008 schemes.put(TupleScheme.class, new unremoveRepository_argsTupleSchemeFactory());
13009 }
13010
13011 public String projectName;
13012 public String repositoryName;
13013
13014
13015 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13016 PROJECT_NAME((short)1, "projectName"),
13017 REPOSITORY_NAME((short)2, "repositoryName");
13018
13019 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13020
13021 static {
13022 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13023 byName.put(field.getFieldName(), field);
13024 }
13025 }
13026
13027
13028
13029
13030 public static _Fields findByThriftId(int fieldId) {
13031 switch(fieldId) {
13032 case 1:
13033 return PROJECT_NAME;
13034 case 2:
13035 return REPOSITORY_NAME;
13036 default:
13037 return null;
13038 }
13039 }
13040
13041
13042
13043
13044
13045 public static _Fields findByThriftIdOrThrow(int fieldId) {
13046 _Fields fields = findByThriftId(fieldId);
13047 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13048 return fields;
13049 }
13050
13051
13052
13053
13054 public static _Fields findByName(String name) {
13055 return byName.get(name);
13056 }
13057
13058 private final short _thriftId;
13059 private final String _fieldName;
13060
13061 _Fields(short thriftId, String fieldName) {
13062 _thriftId = thriftId;
13063 _fieldName = fieldName;
13064 }
13065
13066 public short getThriftFieldId() {
13067 return _thriftId;
13068 }
13069
13070 public String getFieldName() {
13071 return _fieldName;
13072 }
13073 }
13074
13075
13076 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13077 static {
13078 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13079 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13080 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13081 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13082 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13083 metaDataMap = Collections.unmodifiableMap(tmpMap);
13084 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveRepository_args.class, metaDataMap);
13085 }
13086
13087 public unremoveRepository_args() {
13088 }
13089
13090 public unremoveRepository_args(
13091 String projectName,
13092 String repositoryName)
13093 {
13094 this();
13095 this.projectName = projectName;
13096 this.repositoryName = repositoryName;
13097 }
13098
13099
13100
13101
13102 public unremoveRepository_args(unremoveRepository_args other) {
13103 if (other.isSetProjectName()) {
13104 this.projectName = other.projectName;
13105 }
13106 if (other.isSetRepositoryName()) {
13107 this.repositoryName = other.repositoryName;
13108 }
13109 }
13110
13111 public unremoveRepository_args deepCopy() {
13112 return new unremoveRepository_args(this);
13113 }
13114
13115 @Override
13116 public void clear() {
13117 this.projectName = null;
13118 this.repositoryName = null;
13119 }
13120
13121 public String getProjectName() {
13122 return this.projectName;
13123 }
13124
13125 public unremoveRepository_args setProjectName(String projectName) {
13126 this.projectName = projectName;
13127 return this;
13128 }
13129
13130 public void unsetProjectName() {
13131 this.projectName = null;
13132 }
13133
13134
13135 public boolean isSetProjectName() {
13136 return this.projectName != null;
13137 }
13138
13139 public void setProjectNameIsSet(boolean value) {
13140 if (!value) {
13141 this.projectName = null;
13142 }
13143 }
13144
13145 public String getRepositoryName() {
13146 return this.repositoryName;
13147 }
13148
13149 public unremoveRepository_args setRepositoryName(String repositoryName) {
13150 this.repositoryName = repositoryName;
13151 return this;
13152 }
13153
13154 public void unsetRepositoryName() {
13155 this.repositoryName = null;
13156 }
13157
13158
13159 public boolean isSetRepositoryName() {
13160 return this.repositoryName != null;
13161 }
13162
13163 public void setRepositoryNameIsSet(boolean value) {
13164 if (!value) {
13165 this.repositoryName = null;
13166 }
13167 }
13168
13169 public void setFieldValue(_Fields field, Object value) {
13170 switch (field) {
13171 case PROJECT_NAME:
13172 if (value == null) {
13173 unsetProjectName();
13174 } else {
13175 setProjectName((String)value);
13176 }
13177 break;
13178
13179 case REPOSITORY_NAME:
13180 if (value == null) {
13181 unsetRepositoryName();
13182 } else {
13183 setRepositoryName((String)value);
13184 }
13185 break;
13186
13187 }
13188 }
13189
13190 public Object getFieldValue(_Fields field) {
13191 switch (field) {
13192 case PROJECT_NAME:
13193 return getProjectName();
13194
13195 case REPOSITORY_NAME:
13196 return getRepositoryName();
13197
13198 }
13199 throw new IllegalStateException();
13200 }
13201
13202
13203 public boolean isSet(_Fields field) {
13204 if (field == null) {
13205 throw new IllegalArgumentException();
13206 }
13207
13208 switch (field) {
13209 case PROJECT_NAME:
13210 return isSetProjectName();
13211 case REPOSITORY_NAME:
13212 return isSetRepositoryName();
13213 }
13214 throw new IllegalStateException();
13215 }
13216
13217 @Override
13218 public boolean equals(Object that) {
13219 if (that == null)
13220 return false;
13221 if (that instanceof unremoveRepository_args)
13222 return this.equals((unremoveRepository_args)that);
13223 return false;
13224 }
13225
13226 public boolean equals(unremoveRepository_args that) {
13227 if (that == null)
13228 return false;
13229
13230 boolean this_present_projectName = true && this.isSetProjectName();
13231 boolean that_present_projectName = true && that.isSetProjectName();
13232 if (this_present_projectName || that_present_projectName) {
13233 if (!(this_present_projectName && that_present_projectName))
13234 return false;
13235 if (!this.projectName.equals(that.projectName))
13236 return false;
13237 }
13238
13239 boolean this_present_repositoryName = true && this.isSetRepositoryName();
13240 boolean that_present_repositoryName = true && that.isSetRepositoryName();
13241 if (this_present_repositoryName || that_present_repositoryName) {
13242 if (!(this_present_repositoryName && that_present_repositoryName))
13243 return false;
13244 if (!this.repositoryName.equals(that.repositoryName))
13245 return false;
13246 }
13247
13248 return true;
13249 }
13250
13251 @Override
13252 public int hashCode() {
13253 List<Object> list = new ArrayList<Object>();
13254
13255 boolean present_projectName = true && (isSetProjectName());
13256 list.add(present_projectName);
13257 if (present_projectName)
13258 list.add(projectName);
13259
13260 boolean present_repositoryName = true && (isSetRepositoryName());
13261 list.add(present_repositoryName);
13262 if (present_repositoryName)
13263 list.add(repositoryName);
13264
13265 return list.hashCode();
13266 }
13267
13268 @Override
13269 public int compareTo(unremoveRepository_args other) {
13270 if (!getClass().equals(other.getClass())) {
13271 return getClass().getName().compareTo(other.getClass().getName());
13272 }
13273
13274 int lastComparison = 0;
13275
13276 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
13277 if (lastComparison != 0) {
13278 return lastComparison;
13279 }
13280 if (isSetProjectName()) {
13281 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
13282 if (lastComparison != 0) {
13283 return lastComparison;
13284 }
13285 }
13286 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
13287 if (lastComparison != 0) {
13288 return lastComparison;
13289 }
13290 if (isSetRepositoryName()) {
13291 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
13292 if (lastComparison != 0) {
13293 return lastComparison;
13294 }
13295 }
13296 return 0;
13297 }
13298
13299 public _Fields fieldForId(int fieldId) {
13300 return _Fields.findByThriftId(fieldId);
13301 }
13302
13303 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13304 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13305 }
13306
13307 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13308 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13309 }
13310
13311 @Override
13312 public String toString() {
13313 StringBuilder sb = new StringBuilder("unremoveRepository_args(");
13314 boolean first = true;
13315
13316 sb.append("projectName:");
13317 if (this.projectName == null) {
13318 sb.append("null");
13319 } else {
13320 sb.append(this.projectName);
13321 }
13322 first = false;
13323 if (!first) sb.append(", ");
13324 sb.append("repositoryName:");
13325 if (this.repositoryName == null) {
13326 sb.append("null");
13327 } else {
13328 sb.append(this.repositoryName);
13329 }
13330 first = false;
13331 sb.append(")");
13332 return sb.toString();
13333 }
13334
13335 public void validate() throws org.apache.thrift.TException {
13336
13337
13338 }
13339
13340 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13341 try {
13342 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13343 } catch (org.apache.thrift.TException te) {
13344 throw new java.io.IOException(te);
13345 }
13346 }
13347
13348 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13349 try {
13350 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13351 } catch (org.apache.thrift.TException te) {
13352 throw new java.io.IOException(te);
13353 }
13354 }
13355
13356 private static class unremoveRepository_argsStandardSchemeFactory implements SchemeFactory {
13357 public unremoveRepository_argsStandardScheme getScheme() {
13358 return new unremoveRepository_argsStandardScheme();
13359 }
13360 }
13361
13362 private static class unremoveRepository_argsStandardScheme extends StandardScheme<unremoveRepository_args> {
13363
13364 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_args struct) throws org.apache.thrift.TException {
13365 org.apache.thrift.protocol.TField schemeField;
13366 iprot.readStructBegin();
13367 while (true)
13368 {
13369 schemeField = iprot.readFieldBegin();
13370 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13371 break;
13372 }
13373 switch (schemeField.id) {
13374 case 1:
13375 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13376 struct.projectName = iprot.readString();
13377 struct.setProjectNameIsSet(true);
13378 } else {
13379 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13380 }
13381 break;
13382 case 2:
13383 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13384 struct.repositoryName = iprot.readString();
13385 struct.setRepositoryNameIsSet(true);
13386 } else {
13387 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13388 }
13389 break;
13390 default:
13391 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13392 }
13393 iprot.readFieldEnd();
13394 }
13395 iprot.readStructEnd();
13396
13397
13398 struct.validate();
13399 }
13400
13401 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_args struct) throws org.apache.thrift.TException {
13402 struct.validate();
13403
13404 oprot.writeStructBegin(STRUCT_DESC);
13405 if (struct.projectName != null) {
13406 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
13407 oprot.writeString(struct.projectName);
13408 oprot.writeFieldEnd();
13409 }
13410 if (struct.repositoryName != null) {
13411 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
13412 oprot.writeString(struct.repositoryName);
13413 oprot.writeFieldEnd();
13414 }
13415 oprot.writeFieldStop();
13416 oprot.writeStructEnd();
13417 }
13418
13419 }
13420
13421 private static class unremoveRepository_argsTupleSchemeFactory implements SchemeFactory {
13422 public unremoveRepository_argsTupleScheme getScheme() {
13423 return new unremoveRepository_argsTupleScheme();
13424 }
13425 }
13426
13427 private static class unremoveRepository_argsTupleScheme extends TupleScheme<unremoveRepository_args> {
13428
13429 @Override
13430 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException {
13431 TTupleProtocol oprot = (TTupleProtocol) prot;
13432 BitSet optionals = new BitSet();
13433 if (struct.isSetProjectName()) {
13434 optionals.set(0);
13435 }
13436 if (struct.isSetRepositoryName()) {
13437 optionals.set(1);
13438 }
13439 oprot.writeBitSet(optionals, 2);
13440 if (struct.isSetProjectName()) {
13441 oprot.writeString(struct.projectName);
13442 }
13443 if (struct.isSetRepositoryName()) {
13444 oprot.writeString(struct.repositoryName);
13445 }
13446 }
13447
13448 @Override
13449 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException {
13450 TTupleProtocol iprot = (TTupleProtocol) prot;
13451 BitSet incoming = iprot.readBitSet(2);
13452 if (incoming.get(0)) {
13453 struct.projectName = iprot.readString();
13454 struct.setProjectNameIsSet(true);
13455 }
13456 if (incoming.get(1)) {
13457 struct.repositoryName = iprot.readString();
13458 struct.setRepositoryNameIsSet(true);
13459 }
13460 }
13461 }
13462
13463 }
13464
13465 public static class unremoveRepository_result implements org.apache.thrift.TBase<unremoveRepository_result, unremoveRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<unremoveRepository_result> {
13466 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_result");
13467
13468 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13469
13470 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13471 static {
13472 schemes.put(StandardScheme.class, new unremoveRepository_resultStandardSchemeFactory());
13473 schemes.put(TupleScheme.class, new unremoveRepository_resultTupleSchemeFactory());
13474 }
13475
13476 public CentralDogmaException e;
13477
13478
13479 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13480 E((short)1, "e");
13481
13482 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13483
13484 static {
13485 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13486 byName.put(field.getFieldName(), field);
13487 }
13488 }
13489
13490
13491
13492
13493 public static _Fields findByThriftId(int fieldId) {
13494 switch(fieldId) {
13495 case 1:
13496 return E;
13497 default:
13498 return null;
13499 }
13500 }
13501
13502
13503
13504
13505
13506 public static _Fields findByThriftIdOrThrow(int fieldId) {
13507 _Fields fields = findByThriftId(fieldId);
13508 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13509 return fields;
13510 }
13511
13512
13513
13514
13515 public static _Fields findByName(String name) {
13516 return byName.get(name);
13517 }
13518
13519 private final short _thriftId;
13520 private final String _fieldName;
13521
13522 _Fields(short thriftId, String fieldName) {
13523 _thriftId = thriftId;
13524 _fieldName = fieldName;
13525 }
13526
13527 public short getThriftFieldId() {
13528 return _thriftId;
13529 }
13530
13531 public String getFieldName() {
13532 return _fieldName;
13533 }
13534 }
13535
13536
13537 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13538 static {
13539 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13540 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
13541 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13542 metaDataMap = Collections.unmodifiableMap(tmpMap);
13543 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveRepository_result.class, metaDataMap);
13544 }
13545
13546 public unremoveRepository_result() {
13547 }
13548
13549 public unremoveRepository_result(
13550 CentralDogmaException e)
13551 {
13552 this();
13553 this.e = e;
13554 }
13555
13556
13557
13558
13559 public unremoveRepository_result(unremoveRepository_result other) {
13560 if (other.isSetE()) {
13561 this.e = new CentralDogmaException(other.e);
13562 }
13563 }
13564
13565 public unremoveRepository_result deepCopy() {
13566 return new unremoveRepository_result(this);
13567 }
13568
13569 @Override
13570 public void clear() {
13571 this.e = null;
13572 }
13573
13574 public CentralDogmaException getE() {
13575 return this.e;
13576 }
13577
13578 public unremoveRepository_result setE(CentralDogmaException e) {
13579 this.e = e;
13580 return this;
13581 }
13582
13583 public void unsetE() {
13584 this.e = null;
13585 }
13586
13587
13588 public boolean isSetE() {
13589 return this.e != null;
13590 }
13591
13592 public void setEIsSet(boolean value) {
13593 if (!value) {
13594 this.e = null;
13595 }
13596 }
13597
13598 public void setFieldValue(_Fields field, Object value) {
13599 switch (field) {
13600 case E:
13601 if (value == null) {
13602 unsetE();
13603 } else {
13604 setE((CentralDogmaException)value);
13605 }
13606 break;
13607
13608 }
13609 }
13610
13611 public Object getFieldValue(_Fields field) {
13612 switch (field) {
13613 case E:
13614 return getE();
13615
13616 }
13617 throw new IllegalStateException();
13618 }
13619
13620
13621 public boolean isSet(_Fields field) {
13622 if (field == null) {
13623 throw new IllegalArgumentException();
13624 }
13625
13626 switch (field) {
13627 case E:
13628 return isSetE();
13629 }
13630 throw new IllegalStateException();
13631 }
13632
13633 @Override
13634 public boolean equals(Object that) {
13635 if (that == null)
13636 return false;
13637 if (that instanceof unremoveRepository_result)
13638 return this.equals((unremoveRepository_result)that);
13639 return false;
13640 }
13641
13642 public boolean equals(unremoveRepository_result that) {
13643 if (that == null)
13644 return false;
13645
13646 boolean this_present_e = true && this.isSetE();
13647 boolean that_present_e = true && that.isSetE();
13648 if (this_present_e || that_present_e) {
13649 if (!(this_present_e && that_present_e))
13650 return false;
13651 if (!this.e.equals(that.e))
13652 return false;
13653 }
13654
13655 return true;
13656 }
13657
13658 @Override
13659 public int hashCode() {
13660 List<Object> list = new ArrayList<Object>();
13661
13662 boolean present_e = true && (isSetE());
13663 list.add(present_e);
13664 if (present_e)
13665 list.add(e);
13666
13667 return list.hashCode();
13668 }
13669
13670 @Override
13671 public int compareTo(unremoveRepository_result other) {
13672 if (!getClass().equals(other.getClass())) {
13673 return getClass().getName().compareTo(other.getClass().getName());
13674 }
13675
13676 int lastComparison = 0;
13677
13678 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
13679 if (lastComparison != 0) {
13680 return lastComparison;
13681 }
13682 if (isSetE()) {
13683 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
13684 if (lastComparison != 0) {
13685 return lastComparison;
13686 }
13687 }
13688 return 0;
13689 }
13690
13691 public _Fields fieldForId(int fieldId) {
13692 return _Fields.findByThriftId(fieldId);
13693 }
13694
13695 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13696 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13697 }
13698
13699 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13700 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13701 }
13702
13703 @Override
13704 public String toString() {
13705 StringBuilder sb = new StringBuilder("unremoveRepository_result(");
13706 boolean first = true;
13707
13708 sb.append("e:");
13709 if (this.e == null) {
13710 sb.append("null");
13711 } else {
13712 sb.append(this.e);
13713 }
13714 first = false;
13715 sb.append(")");
13716 return sb.toString();
13717 }
13718
13719 public void validate() throws org.apache.thrift.TException {
13720
13721
13722 }
13723
13724 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13725 try {
13726 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13727 } catch (org.apache.thrift.TException te) {
13728 throw new java.io.IOException(te);
13729 }
13730 }
13731
13732 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13733 try {
13734 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13735 } catch (org.apache.thrift.TException te) {
13736 throw new java.io.IOException(te);
13737 }
13738 }
13739
13740 private static class unremoveRepository_resultStandardSchemeFactory implements SchemeFactory {
13741 public unremoveRepository_resultStandardScheme getScheme() {
13742 return new unremoveRepository_resultStandardScheme();
13743 }
13744 }
13745
13746 private static class unremoveRepository_resultStandardScheme extends StandardScheme<unremoveRepository_result> {
13747
13748 public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_result struct) throws org.apache.thrift.TException {
13749 org.apache.thrift.protocol.TField schemeField;
13750 iprot.readStructBegin();
13751 while (true)
13752 {
13753 schemeField = iprot.readFieldBegin();
13754 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13755 break;
13756 }
13757 switch (schemeField.id) {
13758 case 1:
13759 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13760 struct.e = new CentralDogmaException();
13761 struct.e.read(iprot);
13762 struct.setEIsSet(true);
13763 } else {
13764 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13765 }
13766 break;
13767 default:
13768 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13769 }
13770 iprot.readFieldEnd();
13771 }
13772 iprot.readStructEnd();
13773
13774
13775 struct.validate();
13776 }
13777
13778 public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_result struct) throws org.apache.thrift.TException {
13779 struct.validate();
13780
13781 oprot.writeStructBegin(STRUCT_DESC);
13782 if (struct.e != null) {
13783 oprot.writeFieldBegin(E_FIELD_DESC);
13784 struct.e.write(oprot);
13785 oprot.writeFieldEnd();
13786 }
13787 oprot.writeFieldStop();
13788 oprot.writeStructEnd();
13789 }
13790
13791 }
13792
13793 private static class unremoveRepository_resultTupleSchemeFactory implements SchemeFactory {
13794 public unremoveRepository_resultTupleScheme getScheme() {
13795 return new unremoveRepository_resultTupleScheme();
13796 }
13797 }
13798
13799 private static class unremoveRepository_resultTupleScheme extends TupleScheme<unremoveRepository_result> {
13800
13801 @Override
13802 public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException {
13803 TTupleProtocol oprot = (TTupleProtocol) prot;
13804 BitSet optionals = new BitSet();
13805 if (struct.isSetE()) {
13806 optionals.set(0);
13807 }
13808 oprot.writeBitSet(optionals, 1);
13809 if (struct.isSetE()) {
13810 struct.e.write(oprot);
13811 }
13812 }
13813
13814 @Override
13815 public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException {
13816 TTupleProtocol iprot = (TTupleProtocol) prot;
13817 BitSet incoming = iprot.readBitSet(1);
13818 if (incoming.get(0)) {
13819 struct.e = new CentralDogmaException();
13820 struct.e.read(iprot);
13821 struct.setEIsSet(true);
13822 }
13823 }
13824 }
13825
13826 }
13827
13828 public static class listRepositories_args implements org.apache.thrift.TBase<listRepositories_args, listRepositories_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRepositories_args> {
13829 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_args");
13830
13831 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
13832
13833 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13834 static {
13835 schemes.put(StandardScheme.class, new listRepositories_argsStandardSchemeFactory());
13836 schemes.put(TupleScheme.class, new listRepositories_argsTupleSchemeFactory());
13837 }
13838
13839 public String projectName;
13840
13841
13842 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13843 PROJECT_NAME((short)1, "projectName");
13844
13845 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13846
13847 static {
13848 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13849 byName.put(field.getFieldName(), field);
13850 }
13851 }
13852
13853
13854
13855
13856 public static _Fields findByThriftId(int fieldId) {
13857 switch(fieldId) {
13858 case 1:
13859 return PROJECT_NAME;
13860 default:
13861 return null;
13862 }
13863 }
13864
13865
13866
13867
13868
13869 public static _Fields findByThriftIdOrThrow(int fieldId) {
13870 _Fields fields = findByThriftId(fieldId);
13871 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13872 return fields;
13873 }
13874
13875
13876
13877
13878 public static _Fields findByName(String name) {
13879 return byName.get(name);
13880 }
13881
13882 private final short _thriftId;
13883 private final String _fieldName;
13884
13885 _Fields(short thriftId, String fieldName) {
13886 _thriftId = thriftId;
13887 _fieldName = fieldName;
13888 }
13889
13890 public short getThriftFieldId() {
13891 return _thriftId;
13892 }
13893
13894 public String getFieldName() {
13895 return _fieldName;
13896 }
13897 }
13898
13899
13900 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13901 static {
13902 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13903 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13904 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13905 metaDataMap = Collections.unmodifiableMap(tmpMap);
13906 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRepositories_args.class, metaDataMap);
13907 }
13908
13909 public listRepositories_args() {
13910 }
13911
13912 public listRepositories_args(
13913 String projectName)
13914 {
13915 this();
13916 this.projectName = projectName;
13917 }
13918
13919
13920
13921
13922 public listRepositories_args(listRepositories_args other) {
13923 if (other.isSetProjectName()) {
13924 this.projectName = other.projectName;
13925 }
13926 }
13927
13928 public listRepositories_args deepCopy() {
13929 return new listRepositories_args(this);
13930 }
13931
13932 @Override
13933 public void clear() {
13934 this.projectName = null;
13935 }
13936
13937 public String getProjectName() {
13938 return this.projectName;
13939 }
13940
13941 public listRepositories_args setProjectName(String projectName) {
13942 this.projectName = projectName;
13943 return this;
13944 }
13945
13946 public void unsetProjectName() {
13947 this.projectName = null;
13948 }
13949
13950
13951 public boolean isSetProjectName() {
13952 return this.projectName != null;
13953 }
13954
13955 public void setProjectNameIsSet(boolean value) {
13956 if (!value) {
13957 this.projectName = null;
13958 }
13959 }
13960
13961 public void setFieldValue(_Fields field, Object value) {
13962 switch (field) {
13963 case PROJECT_NAME:
13964 if (value == null) {
13965 unsetProjectName();
13966 } else {
13967 setProjectName((String)value);
13968 }
13969 break;
13970
13971 }
13972 }
13973
13974 public Object getFieldValue(_Fields field) {
13975 switch (field) {
13976 case PROJECT_NAME:
13977 return getProjectName();
13978
13979 }
13980 throw new IllegalStateException();
13981 }
13982
13983
13984 public boolean isSet(_Fields field) {
13985 if (field == null) {
13986 throw new IllegalArgumentException();
13987 }
13988
13989 switch (field) {
13990 case PROJECT_NAME:
13991 return isSetProjectName();
13992 }
13993 throw new IllegalStateException();
13994 }
13995
13996 @Override
13997 public boolean equals(Object that) {
13998 if (that == null)
13999 return false;
14000 if (that instanceof listRepositories_args)
14001 return this.equals((listRepositories_args)that);
14002 return false;
14003 }
14004
14005 public boolean equals(listRepositories_args that) {
14006 if (that == null)
14007 return false;
14008
14009 boolean this_present_projectName = true && this.isSetProjectName();
14010 boolean that_present_projectName = true && that.isSetProjectName();
14011 if (this_present_projectName || that_present_projectName) {
14012 if (!(this_present_projectName && that_present_projectName))
14013 return false;
14014 if (!this.projectName.equals(that.projectName))
14015 return false;
14016 }
14017
14018 return true;
14019 }
14020
14021 @Override
14022 public int hashCode() {
14023 List<Object> list = new ArrayList<Object>();
14024
14025 boolean present_projectName = true && (isSetProjectName());
14026 list.add(present_projectName);
14027 if (present_projectName)
14028 list.add(projectName);
14029
14030 return list.hashCode();
14031 }
14032
14033 @Override
14034 public int compareTo(listRepositories_args other) {
14035 if (!getClass().equals(other.getClass())) {
14036 return getClass().getName().compareTo(other.getClass().getName());
14037 }
14038
14039 int lastComparison = 0;
14040
14041 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
14042 if (lastComparison != 0) {
14043 return lastComparison;
14044 }
14045 if (isSetProjectName()) {
14046 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
14047 if (lastComparison != 0) {
14048 return lastComparison;
14049 }
14050 }
14051 return 0;
14052 }
14053
14054 public _Fields fieldForId(int fieldId) {
14055 return _Fields.findByThriftId(fieldId);
14056 }
14057
14058 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14059 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14060 }
14061
14062 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14063 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14064 }
14065
14066 @Override
14067 public String toString() {
14068 StringBuilder sb = new StringBuilder("listRepositories_args(");
14069 boolean first = true;
14070
14071 sb.append("projectName:");
14072 if (this.projectName == null) {
14073 sb.append("null");
14074 } else {
14075 sb.append(this.projectName);
14076 }
14077 first = false;
14078 sb.append(")");
14079 return sb.toString();
14080 }
14081
14082 public void validate() throws org.apache.thrift.TException {
14083
14084
14085 }
14086
14087 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14088 try {
14089 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14090 } catch (org.apache.thrift.TException te) {
14091 throw new java.io.IOException(te);
14092 }
14093 }
14094
14095 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14096 try {
14097 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14098 } catch (org.apache.thrift.TException te) {
14099 throw new java.io.IOException(te);
14100 }
14101 }
14102
14103 private static class listRepositories_argsStandardSchemeFactory implements SchemeFactory {
14104 public listRepositories_argsStandardScheme getScheme() {
14105 return new listRepositories_argsStandardScheme();
14106 }
14107 }
14108
14109 private static class listRepositories_argsStandardScheme extends StandardScheme<listRepositories_args> {
14110
14111 public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_args struct) throws org.apache.thrift.TException {
14112 org.apache.thrift.protocol.TField schemeField;
14113 iprot.readStructBegin();
14114 while (true)
14115 {
14116 schemeField = iprot.readFieldBegin();
14117 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14118 break;
14119 }
14120 switch (schemeField.id) {
14121 case 1:
14122 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14123 struct.projectName = iprot.readString();
14124 struct.setProjectNameIsSet(true);
14125 } else {
14126 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14127 }
14128 break;
14129 default:
14130 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14131 }
14132 iprot.readFieldEnd();
14133 }
14134 iprot.readStructEnd();
14135
14136
14137 struct.validate();
14138 }
14139
14140 public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_args struct) throws org.apache.thrift.TException {
14141 struct.validate();
14142
14143 oprot.writeStructBegin(STRUCT_DESC);
14144 if (struct.projectName != null) {
14145 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
14146 oprot.writeString(struct.projectName);
14147 oprot.writeFieldEnd();
14148 }
14149 oprot.writeFieldStop();
14150 oprot.writeStructEnd();
14151 }
14152
14153 }
14154
14155 private static class listRepositories_argsTupleSchemeFactory implements SchemeFactory {
14156 public listRepositories_argsTupleScheme getScheme() {
14157 return new listRepositories_argsTupleScheme();
14158 }
14159 }
14160
14161 private static class listRepositories_argsTupleScheme extends TupleScheme<listRepositories_args> {
14162
14163 @Override
14164 public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException {
14165 TTupleProtocol oprot = (TTupleProtocol) prot;
14166 BitSet optionals = new BitSet();
14167 if (struct.isSetProjectName()) {
14168 optionals.set(0);
14169 }
14170 oprot.writeBitSet(optionals, 1);
14171 if (struct.isSetProjectName()) {
14172 oprot.writeString(struct.projectName);
14173 }
14174 }
14175
14176 @Override
14177 public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException {
14178 TTupleProtocol iprot = (TTupleProtocol) prot;
14179 BitSet incoming = iprot.readBitSet(1);
14180 if (incoming.get(0)) {
14181 struct.projectName = iprot.readString();
14182 struct.setProjectNameIsSet(true);
14183 }
14184 }
14185 }
14186
14187 }
14188
14189 public static class listRepositories_result implements org.apache.thrift.TBase<listRepositories_result, listRepositories_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRepositories_result> {
14190 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_result");
14191
14192 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
14193 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14194
14195 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14196 static {
14197 schemes.put(StandardScheme.class, new listRepositories_resultStandardSchemeFactory());
14198 schemes.put(TupleScheme.class, new listRepositories_resultTupleSchemeFactory());
14199 }
14200
14201 public List<Repository> success;
14202 public CentralDogmaException e;
14203
14204
14205 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14206 SUCCESS((short)0, "success"),
14207 E((short)1, "e");
14208
14209 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14210
14211 static {
14212 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14213 byName.put(field.getFieldName(), field);
14214 }
14215 }
14216
14217
14218
14219
14220 public static _Fields findByThriftId(int fieldId) {
14221 switch(fieldId) {
14222 case 0:
14223 return SUCCESS;
14224 case 1:
14225 return E;
14226 default:
14227 return null;
14228 }
14229 }
14230
14231
14232
14233
14234
14235 public static _Fields findByThriftIdOrThrow(int fieldId) {
14236 _Fields fields = findByThriftId(fieldId);
14237 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14238 return fields;
14239 }
14240
14241
14242
14243
14244 public static _Fields findByName(String name) {
14245 return byName.get(name);
14246 }
14247
14248 private final short _thriftId;
14249 private final String _fieldName;
14250
14251 _Fields(short thriftId, String fieldName) {
14252 _thriftId = thriftId;
14253 _fieldName = fieldName;
14254 }
14255
14256 public short getThriftFieldId() {
14257 return _thriftId;
14258 }
14259
14260 public String getFieldName() {
14261 return _fieldName;
14262 }
14263 }
14264
14265
14266 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14267 static {
14268 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14269 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14270 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
14271 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Repository.class))));
14272 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
14273 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14274 metaDataMap = Collections.unmodifiableMap(tmpMap);
14275 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRepositories_result.class, metaDataMap);
14276 }
14277
14278 public listRepositories_result() {
14279 }
14280
14281 public listRepositories_result(
14282 List<Repository> success,
14283 CentralDogmaException e)
14284 {
14285 this();
14286 this.success = success;
14287 this.e = e;
14288 }
14289
14290
14291
14292
14293 public listRepositories_result(listRepositories_result other) {
14294 if (other.isSetSuccess()) {
14295 List<Repository> __this__success = new ArrayList<Repository>(other.success.size());
14296 for (Repository other_element : other.success) {
14297 __this__success.add(new Repository(other_element));
14298 }
14299 this.success = __this__success;
14300 }
14301 if (other.isSetE()) {
14302 this.e = new CentralDogmaException(other.e);
14303 }
14304 }
14305
14306 public listRepositories_result deepCopy() {
14307 return new listRepositories_result(this);
14308 }
14309
14310 @Override
14311 public void clear() {
14312 this.success = null;
14313 this.e = null;
14314 }
14315
14316 public int getSuccessSize() {
14317 return (this.success == null) ? 0 : this.success.size();
14318 }
14319
14320 public java.util.Iterator<Repository> getSuccessIterator() {
14321 return (this.success == null) ? null : this.success.iterator();
14322 }
14323
14324 public void addToSuccess(Repository elem) {
14325 if (this.success == null) {
14326 this.success = new ArrayList<Repository>();
14327 }
14328 this.success.add(elem);
14329 }
14330
14331 public List<Repository> getSuccess() {
14332 return this.success;
14333 }
14334
14335 public listRepositories_result setSuccess(List<Repository> success) {
14336 this.success = success;
14337 return this;
14338 }
14339
14340 public void unsetSuccess() {
14341 this.success = null;
14342 }
14343
14344
14345 public boolean isSetSuccess() {
14346 return this.success != null;
14347 }
14348
14349 public void setSuccessIsSet(boolean value) {
14350 if (!value) {
14351 this.success = null;
14352 }
14353 }
14354
14355 public CentralDogmaException getE() {
14356 return this.e;
14357 }
14358
14359 public listRepositories_result setE(CentralDogmaException e) {
14360 this.e = e;
14361 return this;
14362 }
14363
14364 public void unsetE() {
14365 this.e = null;
14366 }
14367
14368
14369 public boolean isSetE() {
14370 return this.e != null;
14371 }
14372
14373 public void setEIsSet(boolean value) {
14374 if (!value) {
14375 this.e = null;
14376 }
14377 }
14378
14379 public void setFieldValue(_Fields field, Object value) {
14380 switch (field) {
14381 case SUCCESS:
14382 if (value == null) {
14383 unsetSuccess();
14384 } else {
14385 setSuccess((List<Repository>)value);
14386 }
14387 break;
14388
14389 case E:
14390 if (value == null) {
14391 unsetE();
14392 } else {
14393 setE((CentralDogmaException)value);
14394 }
14395 break;
14396
14397 }
14398 }
14399
14400 public Object getFieldValue(_Fields field) {
14401 switch (field) {
14402 case SUCCESS:
14403 return getSuccess();
14404
14405 case E:
14406 return getE();
14407
14408 }
14409 throw new IllegalStateException();
14410 }
14411
14412
14413 public boolean isSet(_Fields field) {
14414 if (field == null) {
14415 throw new IllegalArgumentException();
14416 }
14417
14418 switch (field) {
14419 case SUCCESS:
14420 return isSetSuccess();
14421 case E:
14422 return isSetE();
14423 }
14424 throw new IllegalStateException();
14425 }
14426
14427 @Override
14428 public boolean equals(Object that) {
14429 if (that == null)
14430 return false;
14431 if (that instanceof listRepositories_result)
14432 return this.equals((listRepositories_result)that);
14433 return false;
14434 }
14435
14436 public boolean equals(listRepositories_result that) {
14437 if (that == null)
14438 return false;
14439
14440 boolean this_present_success = true && this.isSetSuccess();
14441 boolean that_present_success = true && that.isSetSuccess();
14442 if (this_present_success || that_present_success) {
14443 if (!(this_present_success && that_present_success))
14444 return false;
14445 if (!this.success.equals(that.success))
14446 return false;
14447 }
14448
14449 boolean this_present_e = true && this.isSetE();
14450 boolean that_present_e = true && that.isSetE();
14451 if (this_present_e || that_present_e) {
14452 if (!(this_present_e && that_present_e))
14453 return false;
14454 if (!this.e.equals(that.e))
14455 return false;
14456 }
14457
14458 return true;
14459 }
14460
14461 @Override
14462 public int hashCode() {
14463 List<Object> list = new ArrayList<Object>();
14464
14465 boolean present_success = true && (isSetSuccess());
14466 list.add(present_success);
14467 if (present_success)
14468 list.add(success);
14469
14470 boolean present_e = true && (isSetE());
14471 list.add(present_e);
14472 if (present_e)
14473 list.add(e);
14474
14475 return list.hashCode();
14476 }
14477
14478 @Override
14479 public int compareTo(listRepositories_result other) {
14480 if (!getClass().equals(other.getClass())) {
14481 return getClass().getName().compareTo(other.getClass().getName());
14482 }
14483
14484 int lastComparison = 0;
14485
14486 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14487 if (lastComparison != 0) {
14488 return lastComparison;
14489 }
14490 if (isSetSuccess()) {
14491 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14492 if (lastComparison != 0) {
14493 return lastComparison;
14494 }
14495 }
14496 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
14497 if (lastComparison != 0) {
14498 return lastComparison;
14499 }
14500 if (isSetE()) {
14501 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
14502 if (lastComparison != 0) {
14503 return lastComparison;
14504 }
14505 }
14506 return 0;
14507 }
14508
14509 public _Fields fieldForId(int fieldId) {
14510 return _Fields.findByThriftId(fieldId);
14511 }
14512
14513 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14514 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14515 }
14516
14517 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14518 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14519 }
14520
14521 @Override
14522 public String toString() {
14523 StringBuilder sb = new StringBuilder("listRepositories_result(");
14524 boolean first = true;
14525
14526 sb.append("success:");
14527 if (this.success == null) {
14528 sb.append("null");
14529 } else {
14530 sb.append(this.success);
14531 }
14532 first = false;
14533 if (!first) sb.append(", ");
14534 sb.append("e:");
14535 if (this.e == null) {
14536 sb.append("null");
14537 } else {
14538 sb.append(this.e);
14539 }
14540 first = false;
14541 sb.append(")");
14542 return sb.toString();
14543 }
14544
14545 public void validate() throws org.apache.thrift.TException {
14546
14547
14548 }
14549
14550 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14551 try {
14552 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14553 } catch (org.apache.thrift.TException te) {
14554 throw new java.io.IOException(te);
14555 }
14556 }
14557
14558 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14559 try {
14560 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14561 } catch (org.apache.thrift.TException te) {
14562 throw new java.io.IOException(te);
14563 }
14564 }
14565
14566 private static class listRepositories_resultStandardSchemeFactory implements SchemeFactory {
14567 public listRepositories_resultStandardScheme getScheme() {
14568 return new listRepositories_resultStandardScheme();
14569 }
14570 }
14571
14572 private static class listRepositories_resultStandardScheme extends StandardScheme<listRepositories_result> {
14573
14574 public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_result struct) throws org.apache.thrift.TException {
14575 org.apache.thrift.protocol.TField schemeField;
14576 iprot.readStructBegin();
14577 while (true)
14578 {
14579 schemeField = iprot.readFieldBegin();
14580 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14581 break;
14582 }
14583 switch (schemeField.id) {
14584 case 0:
14585 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
14586 {
14587 org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
14588 struct.success = new ArrayList<Repository>(_list88.size);
14589 Repository _elem89;
14590 for (int _i90 = 0; _i90 < _list88.size; ++_i90)
14591 {
14592 _elem89 = new Repository();
14593 _elem89.read(iprot);
14594 struct.success.add(_elem89);
14595 }
14596 iprot.readListEnd();
14597 }
14598 struct.setSuccessIsSet(true);
14599 } else {
14600 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14601 }
14602 break;
14603 case 1:
14604 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14605 struct.e = new CentralDogmaException();
14606 struct.e.read(iprot);
14607 struct.setEIsSet(true);
14608 } else {
14609 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14610 }
14611 break;
14612 default:
14613 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14614 }
14615 iprot.readFieldEnd();
14616 }
14617 iprot.readStructEnd();
14618
14619
14620 struct.validate();
14621 }
14622
14623 public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_result struct) throws org.apache.thrift.TException {
14624 struct.validate();
14625
14626 oprot.writeStructBegin(STRUCT_DESC);
14627 if (struct.success != null) {
14628 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14629 {
14630 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
14631 for (Repository _iter91 : struct.success)
14632 {
14633 _iter91.write(oprot);
14634 }
14635 oprot.writeListEnd();
14636 }
14637 oprot.writeFieldEnd();
14638 }
14639 if (struct.e != null) {
14640 oprot.writeFieldBegin(E_FIELD_DESC);
14641 struct.e.write(oprot);
14642 oprot.writeFieldEnd();
14643 }
14644 oprot.writeFieldStop();
14645 oprot.writeStructEnd();
14646 }
14647
14648 }
14649
14650 private static class listRepositories_resultTupleSchemeFactory implements SchemeFactory {
14651 public listRepositories_resultTupleScheme getScheme() {
14652 return new listRepositories_resultTupleScheme();
14653 }
14654 }
14655
14656 private static class listRepositories_resultTupleScheme extends TupleScheme<listRepositories_result> {
14657
14658 @Override
14659 public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException {
14660 TTupleProtocol oprot = (TTupleProtocol) prot;
14661 BitSet optionals = new BitSet();
14662 if (struct.isSetSuccess()) {
14663 optionals.set(0);
14664 }
14665 if (struct.isSetE()) {
14666 optionals.set(1);
14667 }
14668 oprot.writeBitSet(optionals, 2);
14669 if (struct.isSetSuccess()) {
14670 {
14671 oprot.writeI32(struct.success.size());
14672 for (Repository _iter92 : struct.success)
14673 {
14674 _iter92.write(oprot);
14675 }
14676 }
14677 }
14678 if (struct.isSetE()) {
14679 struct.e.write(oprot);
14680 }
14681 }
14682
14683 @Override
14684 public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException {
14685 TTupleProtocol iprot = (TTupleProtocol) prot;
14686 BitSet incoming = iprot.readBitSet(2);
14687 if (incoming.get(0)) {
14688 {
14689 org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
14690 struct.success = new ArrayList<Repository>(_list93.size);
14691 Repository _elem94;
14692 for (int _i95 = 0; _i95 < _list93.size; ++_i95)
14693 {
14694 _elem94 = new Repository();
14695 _elem94.read(iprot);
14696 struct.success.add(_elem94);
14697 }
14698 }
14699 struct.setSuccessIsSet(true);
14700 }
14701 if (incoming.get(1)) {
14702 struct.e = new CentralDogmaException();
14703 struct.e.read(iprot);
14704 struct.setEIsSet(true);
14705 }
14706 }
14707 }
14708
14709 }
14710
14711 public static class listRemovedRepositories_args implements org.apache.thrift.TBase<listRemovedRepositories_args, listRemovedRepositories_args._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedRepositories_args> {
14712 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_args");
14713
14714 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
14715
14716 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14717 static {
14718 schemes.put(StandardScheme.class, new listRemovedRepositories_argsStandardSchemeFactory());
14719 schemes.put(TupleScheme.class, new listRemovedRepositories_argsTupleSchemeFactory());
14720 }
14721
14722 public String projectName;
14723
14724
14725 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14726 PROJECT_NAME((short)1, "projectName");
14727
14728 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14729
14730 static {
14731 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14732 byName.put(field.getFieldName(), field);
14733 }
14734 }
14735
14736
14737
14738
14739 public static _Fields findByThriftId(int fieldId) {
14740 switch(fieldId) {
14741 case 1:
14742 return PROJECT_NAME;
14743 default:
14744 return null;
14745 }
14746 }
14747
14748
14749
14750
14751
14752 public static _Fields findByThriftIdOrThrow(int fieldId) {
14753 _Fields fields = findByThriftId(fieldId);
14754 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14755 return fields;
14756 }
14757
14758
14759
14760
14761 public static _Fields findByName(String name) {
14762 return byName.get(name);
14763 }
14764
14765 private final short _thriftId;
14766 private final String _fieldName;
14767
14768 _Fields(short thriftId, String fieldName) {
14769 _thriftId = thriftId;
14770 _fieldName = fieldName;
14771 }
14772
14773 public short getThriftFieldId() {
14774 return _thriftId;
14775 }
14776
14777 public String getFieldName() {
14778 return _fieldName;
14779 }
14780 }
14781
14782
14783 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14784 static {
14785 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14786 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14787 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14788 metaDataMap = Collections.unmodifiableMap(tmpMap);
14789 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedRepositories_args.class, metaDataMap);
14790 }
14791
14792 public listRemovedRepositories_args() {
14793 }
14794
14795 public listRemovedRepositories_args(
14796 String projectName)
14797 {
14798 this();
14799 this.projectName = projectName;
14800 }
14801
14802
14803
14804
14805 public listRemovedRepositories_args(listRemovedRepositories_args other) {
14806 if (other.isSetProjectName()) {
14807 this.projectName = other.projectName;
14808 }
14809 }
14810
14811 public listRemovedRepositories_args deepCopy() {
14812 return new listRemovedRepositories_args(this);
14813 }
14814
14815 @Override
14816 public void clear() {
14817 this.projectName = null;
14818 }
14819
14820 public String getProjectName() {
14821 return this.projectName;
14822 }
14823
14824 public listRemovedRepositories_args setProjectName(String projectName) {
14825 this.projectName = projectName;
14826 return this;
14827 }
14828
14829 public void unsetProjectName() {
14830 this.projectName = null;
14831 }
14832
14833
14834 public boolean isSetProjectName() {
14835 return this.projectName != null;
14836 }
14837
14838 public void setProjectNameIsSet(boolean value) {
14839 if (!value) {
14840 this.projectName = null;
14841 }
14842 }
14843
14844 public void setFieldValue(_Fields field, Object value) {
14845 switch (field) {
14846 case PROJECT_NAME:
14847 if (value == null) {
14848 unsetProjectName();
14849 } else {
14850 setProjectName((String)value);
14851 }
14852 break;
14853
14854 }
14855 }
14856
14857 public Object getFieldValue(_Fields field) {
14858 switch (field) {
14859 case PROJECT_NAME:
14860 return getProjectName();
14861
14862 }
14863 throw new IllegalStateException();
14864 }
14865
14866
14867 public boolean isSet(_Fields field) {
14868 if (field == null) {
14869 throw new IllegalArgumentException();
14870 }
14871
14872 switch (field) {
14873 case PROJECT_NAME:
14874 return isSetProjectName();
14875 }
14876 throw new IllegalStateException();
14877 }
14878
14879 @Override
14880 public boolean equals(Object that) {
14881 if (that == null)
14882 return false;
14883 if (that instanceof listRemovedRepositories_args)
14884 return this.equals((listRemovedRepositories_args)that);
14885 return false;
14886 }
14887
14888 public boolean equals(listRemovedRepositories_args that) {
14889 if (that == null)
14890 return false;
14891
14892 boolean this_present_projectName = true && this.isSetProjectName();
14893 boolean that_present_projectName = true && that.isSetProjectName();
14894 if (this_present_projectName || that_present_projectName) {
14895 if (!(this_present_projectName && that_present_projectName))
14896 return false;
14897 if (!this.projectName.equals(that.projectName))
14898 return false;
14899 }
14900
14901 return true;
14902 }
14903
14904 @Override
14905 public int hashCode() {
14906 List<Object> list = new ArrayList<Object>();
14907
14908 boolean present_projectName = true && (isSetProjectName());
14909 list.add(present_projectName);
14910 if (present_projectName)
14911 list.add(projectName);
14912
14913 return list.hashCode();
14914 }
14915
14916 @Override
14917 public int compareTo(listRemovedRepositories_args other) {
14918 if (!getClass().equals(other.getClass())) {
14919 return getClass().getName().compareTo(other.getClass().getName());
14920 }
14921
14922 int lastComparison = 0;
14923
14924 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
14925 if (lastComparison != 0) {
14926 return lastComparison;
14927 }
14928 if (isSetProjectName()) {
14929 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
14930 if (lastComparison != 0) {
14931 return lastComparison;
14932 }
14933 }
14934 return 0;
14935 }
14936
14937 public _Fields fieldForId(int fieldId) {
14938 return _Fields.findByThriftId(fieldId);
14939 }
14940
14941 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14942 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14943 }
14944
14945 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14946 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14947 }
14948
14949 @Override
14950 public String toString() {
14951 StringBuilder sb = new StringBuilder("listRemovedRepositories_args(");
14952 boolean first = true;
14953
14954 sb.append("projectName:");
14955 if (this.projectName == null) {
14956 sb.append("null");
14957 } else {
14958 sb.append(this.projectName);
14959 }
14960 first = false;
14961 sb.append(")");
14962 return sb.toString();
14963 }
14964
14965 public void validate() throws org.apache.thrift.TException {
14966
14967
14968 }
14969
14970 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14971 try {
14972 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14973 } catch (org.apache.thrift.TException te) {
14974 throw new java.io.IOException(te);
14975 }
14976 }
14977
14978 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14979 try {
14980 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14981 } catch (org.apache.thrift.TException te) {
14982 throw new java.io.IOException(te);
14983 }
14984 }
14985
14986 private static class listRemovedRepositories_argsStandardSchemeFactory implements SchemeFactory {
14987 public listRemovedRepositories_argsStandardScheme getScheme() {
14988 return new listRemovedRepositories_argsStandardScheme();
14989 }
14990 }
14991
14992 private static class listRemovedRepositories_argsStandardScheme extends StandardScheme<listRemovedRepositories_args> {
14993
14994 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
14995 org.apache.thrift.protocol.TField schemeField;
14996 iprot.readStructBegin();
14997 while (true)
14998 {
14999 schemeField = iprot.readFieldBegin();
15000 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15001 break;
15002 }
15003 switch (schemeField.id) {
15004 case 1:
15005 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15006 struct.projectName = iprot.readString();
15007 struct.setProjectNameIsSet(true);
15008 } else {
15009 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15010 }
15011 break;
15012 default:
15013 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15014 }
15015 iprot.readFieldEnd();
15016 }
15017 iprot.readStructEnd();
15018
15019
15020 struct.validate();
15021 }
15022
15023 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
15024 struct.validate();
15025
15026 oprot.writeStructBegin(STRUCT_DESC);
15027 if (struct.projectName != null) {
15028 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
15029 oprot.writeString(struct.projectName);
15030 oprot.writeFieldEnd();
15031 }
15032 oprot.writeFieldStop();
15033 oprot.writeStructEnd();
15034 }
15035
15036 }
15037
15038 private static class listRemovedRepositories_argsTupleSchemeFactory implements SchemeFactory {
15039 public listRemovedRepositories_argsTupleScheme getScheme() {
15040 return new listRemovedRepositories_argsTupleScheme();
15041 }
15042 }
15043
15044 private static class listRemovedRepositories_argsTupleScheme extends TupleScheme<listRemovedRepositories_args> {
15045
15046 @Override
15047 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
15048 TTupleProtocol oprot = (TTupleProtocol) prot;
15049 BitSet optionals = new BitSet();
15050 if (struct.isSetProjectName()) {
15051 optionals.set(0);
15052 }
15053 oprot.writeBitSet(optionals, 1);
15054 if (struct.isSetProjectName()) {
15055 oprot.writeString(struct.projectName);
15056 }
15057 }
15058
15059 @Override
15060 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException {
15061 TTupleProtocol iprot = (TTupleProtocol) prot;
15062 BitSet incoming = iprot.readBitSet(1);
15063 if (incoming.get(0)) {
15064 struct.projectName = iprot.readString();
15065 struct.setProjectNameIsSet(true);
15066 }
15067 }
15068 }
15069
15070 }
15071
15072 public static class listRemovedRepositories_result implements org.apache.thrift.TBase<listRemovedRepositories_result, listRemovedRepositories_result._Fields>, java.io.Serializable, Cloneable, Comparable<listRemovedRepositories_result> {
15073 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_result");
15074
15075 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0);
15076 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
15077
15078 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15079 static {
15080 schemes.put(StandardScheme.class, new listRemovedRepositories_resultStandardSchemeFactory());
15081 schemes.put(TupleScheme.class, new listRemovedRepositories_resultTupleSchemeFactory());
15082 }
15083
15084 public Set<String> success;
15085 public CentralDogmaException e;
15086
15087
15088 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15089 SUCCESS((short)0, "success"),
15090 E((short)1, "e");
15091
15092 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15093
15094 static {
15095 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15096 byName.put(field.getFieldName(), field);
15097 }
15098 }
15099
15100
15101
15102
15103 public static _Fields findByThriftId(int fieldId) {
15104 switch(fieldId) {
15105 case 0:
15106 return SUCCESS;
15107 case 1:
15108 return E;
15109 default:
15110 return null;
15111 }
15112 }
15113
15114
15115
15116
15117
15118 public static _Fields findByThriftIdOrThrow(int fieldId) {
15119 _Fields fields = findByThriftId(fieldId);
15120 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15121 return fields;
15122 }
15123
15124
15125
15126
15127 public static _Fields findByName(String name) {
15128 return byName.get(name);
15129 }
15130
15131 private final short _thriftId;
15132 private final String _fieldName;
15133
15134 _Fields(short thriftId, String fieldName) {
15135 _thriftId = thriftId;
15136 _fieldName = fieldName;
15137 }
15138
15139 public short getThriftFieldId() {
15140 return _thriftId;
15141 }
15142
15143 public String getFieldName() {
15144 return _fieldName;
15145 }
15146 }
15147
15148
15149 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15150 static {
15151 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15152 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15153 new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
15154 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15155 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
15156 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15157 metaDataMap = Collections.unmodifiableMap(tmpMap);
15158 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedRepositories_result.class, metaDataMap);
15159 }
15160
15161 public listRemovedRepositories_result() {
15162 }
15163
15164 public listRemovedRepositories_result(
15165 Set<String> success,
15166 CentralDogmaException e)
15167 {
15168 this();
15169 this.success = success;
15170 this.e = e;
15171 }
15172
15173
15174
15175
15176 public listRemovedRepositories_result(listRemovedRepositories_result other) {
15177 if (other.isSetSuccess()) {
15178 Set<String> __this__success = new HashSet<String>(other.success);
15179 this.success = __this__success;
15180 }
15181 if (other.isSetE()) {
15182 this.e = new CentralDogmaException(other.e);
15183 }
15184 }
15185
15186 public listRemovedRepositories_result deepCopy() {
15187 return new listRemovedRepositories_result(this);
15188 }
15189
15190 @Override
15191 public void clear() {
15192 this.success = null;
15193 this.e = null;
15194 }
15195
15196 public int getSuccessSize() {
15197 return (this.success == null) ? 0 : this.success.size();
15198 }
15199
15200 public java.util.Iterator<String> getSuccessIterator() {
15201 return (this.success == null) ? null : this.success.iterator();
15202 }
15203
15204 public void addToSuccess(String elem) {
15205 if (this.success == null) {
15206 this.success = new HashSet<String>();
15207 }
15208 this.success.add(elem);
15209 }
15210
15211 public Set<String> getSuccess() {
15212 return this.success;
15213 }
15214
15215 public listRemovedRepositories_result setSuccess(Set<String> success) {
15216 this.success = success;
15217 return this;
15218 }
15219
15220 public void unsetSuccess() {
15221 this.success = null;
15222 }
15223
15224
15225 public boolean isSetSuccess() {
15226 return this.success != null;
15227 }
15228
15229 public void setSuccessIsSet(boolean value) {
15230 if (!value) {
15231 this.success = null;
15232 }
15233 }
15234
15235 public CentralDogmaException getE() {
15236 return this.e;
15237 }
15238
15239 public listRemovedRepositories_result setE(CentralDogmaException e) {
15240 this.e = e;
15241 return this;
15242 }
15243
15244 public void unsetE() {
15245 this.e = null;
15246 }
15247
15248
15249 public boolean isSetE() {
15250 return this.e != null;
15251 }
15252
15253 public void setEIsSet(boolean value) {
15254 if (!value) {
15255 this.e = null;
15256 }
15257 }
15258
15259 public void setFieldValue(_Fields field, Object value) {
15260 switch (field) {
15261 case SUCCESS:
15262 if (value == null) {
15263 unsetSuccess();
15264 } else {
15265 setSuccess((Set<String>)value);
15266 }
15267 break;
15268
15269 case E:
15270 if (value == null) {
15271 unsetE();
15272 } else {
15273 setE((CentralDogmaException)value);
15274 }
15275 break;
15276
15277 }
15278 }
15279
15280 public Object getFieldValue(_Fields field) {
15281 switch (field) {
15282 case SUCCESS:
15283 return getSuccess();
15284
15285 case E:
15286 return getE();
15287
15288 }
15289 throw new IllegalStateException();
15290 }
15291
15292
15293 public boolean isSet(_Fields field) {
15294 if (field == null) {
15295 throw new IllegalArgumentException();
15296 }
15297
15298 switch (field) {
15299 case SUCCESS:
15300 return isSetSuccess();
15301 case E:
15302 return isSetE();
15303 }
15304 throw new IllegalStateException();
15305 }
15306
15307 @Override
15308 public boolean equals(Object that) {
15309 if (that == null)
15310 return false;
15311 if (that instanceof listRemovedRepositories_result)
15312 return this.equals((listRemovedRepositories_result)that);
15313 return false;
15314 }
15315
15316 public boolean equals(listRemovedRepositories_result that) {
15317 if (that == null)
15318 return false;
15319
15320 boolean this_present_success = true && this.isSetSuccess();
15321 boolean that_present_success = true && that.isSetSuccess();
15322 if (this_present_success || that_present_success) {
15323 if (!(this_present_success && that_present_success))
15324 return false;
15325 if (!this.success.equals(that.success))
15326 return false;
15327 }
15328
15329 boolean this_present_e = true && this.isSetE();
15330 boolean that_present_e = true && that.isSetE();
15331 if (this_present_e || that_present_e) {
15332 if (!(this_present_e && that_present_e))
15333 return false;
15334 if (!this.e.equals(that.e))
15335 return false;
15336 }
15337
15338 return true;
15339 }
15340
15341 @Override
15342 public int hashCode() {
15343 List<Object> list = new ArrayList<Object>();
15344
15345 boolean present_success = true && (isSetSuccess());
15346 list.add(present_success);
15347 if (present_success)
15348 list.add(success);
15349
15350 boolean present_e = true && (isSetE());
15351 list.add(present_e);
15352 if (present_e)
15353 list.add(e);
15354
15355 return list.hashCode();
15356 }
15357
15358 @Override
15359 public int compareTo(listRemovedRepositories_result other) {
15360 if (!getClass().equals(other.getClass())) {
15361 return getClass().getName().compareTo(other.getClass().getName());
15362 }
15363
15364 int lastComparison = 0;
15365
15366 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15367 if (lastComparison != 0) {
15368 return lastComparison;
15369 }
15370 if (isSetSuccess()) {
15371 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15372 if (lastComparison != 0) {
15373 return lastComparison;
15374 }
15375 }
15376 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
15377 if (lastComparison != 0) {
15378 return lastComparison;
15379 }
15380 if (isSetE()) {
15381 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
15382 if (lastComparison != 0) {
15383 return lastComparison;
15384 }
15385 }
15386 return 0;
15387 }
15388
15389 public _Fields fieldForId(int fieldId) {
15390 return _Fields.findByThriftId(fieldId);
15391 }
15392
15393 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15394 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15395 }
15396
15397 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15398 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15399 }
15400
15401 @Override
15402 public String toString() {
15403 StringBuilder sb = new StringBuilder("listRemovedRepositories_result(");
15404 boolean first = true;
15405
15406 sb.append("success:");
15407 if (this.success == null) {
15408 sb.append("null");
15409 } else {
15410 sb.append(this.success);
15411 }
15412 first = false;
15413 if (!first) sb.append(", ");
15414 sb.append("e:");
15415 if (this.e == null) {
15416 sb.append("null");
15417 } else {
15418 sb.append(this.e);
15419 }
15420 first = false;
15421 sb.append(")");
15422 return sb.toString();
15423 }
15424
15425 public void validate() throws org.apache.thrift.TException {
15426
15427
15428 }
15429
15430 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15431 try {
15432 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15433 } catch (org.apache.thrift.TException te) {
15434 throw new java.io.IOException(te);
15435 }
15436 }
15437
15438 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15439 try {
15440 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15441 } catch (org.apache.thrift.TException te) {
15442 throw new java.io.IOException(te);
15443 }
15444 }
15445
15446 private static class listRemovedRepositories_resultStandardSchemeFactory implements SchemeFactory {
15447 public listRemovedRepositories_resultStandardScheme getScheme() {
15448 return new listRemovedRepositories_resultStandardScheme();
15449 }
15450 }
15451
15452 private static class listRemovedRepositories_resultStandardScheme extends StandardScheme<listRemovedRepositories_result> {
15453
15454 public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
15455 org.apache.thrift.protocol.TField schemeField;
15456 iprot.readStructBegin();
15457 while (true)
15458 {
15459 schemeField = iprot.readFieldBegin();
15460 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15461 break;
15462 }
15463 switch (schemeField.id) {
15464 case 0:
15465 if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
15466 {
15467 org.apache.thrift.protocol.TSet _set96 = iprot.readSetBegin();
15468 struct.success = new HashSet<String>(2*_set96.size);
15469 String _elem97;
15470 for (int _i98 = 0; _i98 < _set96.size; ++_i98)
15471 {
15472 _elem97 = iprot.readString();
15473 struct.success.add(_elem97);
15474 }
15475 iprot.readSetEnd();
15476 }
15477 struct.setSuccessIsSet(true);
15478 } else {
15479 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15480 }
15481 break;
15482 case 1:
15483 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15484 struct.e = new CentralDogmaException();
15485 struct.e.read(iprot);
15486 struct.setEIsSet(true);
15487 } else {
15488 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15489 }
15490 break;
15491 default:
15492 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15493 }
15494 iprot.readFieldEnd();
15495 }
15496 iprot.readStructEnd();
15497
15498
15499 struct.validate();
15500 }
15501
15502 public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
15503 struct.validate();
15504
15505 oprot.writeStructBegin(STRUCT_DESC);
15506 if (struct.success != null) {
15507 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15508 {
15509 oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
15510 for (String _iter99 : struct.success)
15511 {
15512 oprot.writeString(_iter99);
15513 }
15514 oprot.writeSetEnd();
15515 }
15516 oprot.writeFieldEnd();
15517 }
15518 if (struct.e != null) {
15519 oprot.writeFieldBegin(E_FIELD_DESC);
15520 struct.e.write(oprot);
15521 oprot.writeFieldEnd();
15522 }
15523 oprot.writeFieldStop();
15524 oprot.writeStructEnd();
15525 }
15526
15527 }
15528
15529 private static class listRemovedRepositories_resultTupleSchemeFactory implements SchemeFactory {
15530 public listRemovedRepositories_resultTupleScheme getScheme() {
15531 return new listRemovedRepositories_resultTupleScheme();
15532 }
15533 }
15534
15535 private static class listRemovedRepositories_resultTupleScheme extends TupleScheme<listRemovedRepositories_result> {
15536
15537 @Override
15538 public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
15539 TTupleProtocol oprot = (TTupleProtocol) prot;
15540 BitSet optionals = new BitSet();
15541 if (struct.isSetSuccess()) {
15542 optionals.set(0);
15543 }
15544 if (struct.isSetE()) {
15545 optionals.set(1);
15546 }
15547 oprot.writeBitSet(optionals, 2);
15548 if (struct.isSetSuccess()) {
15549 {
15550 oprot.writeI32(struct.success.size());
15551 for (String _iter100 : struct.success)
15552 {
15553 oprot.writeString(_iter100);
15554 }
15555 }
15556 }
15557 if (struct.isSetE()) {
15558 struct.e.write(oprot);
15559 }
15560 }
15561
15562 @Override
15563 public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException {
15564 TTupleProtocol iprot = (TTupleProtocol) prot;
15565 BitSet incoming = iprot.readBitSet(2);
15566 if (incoming.get(0)) {
15567 {
15568 org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
15569 struct.success = new HashSet<String>(2*_set101.size);
15570 String _elem102;
15571 for (int _i103 = 0; _i103 < _set101.size; ++_i103)
15572 {
15573 _elem102 = iprot.readString();
15574 struct.success.add(_elem102);
15575 }
15576 }
15577 struct.setSuccessIsSet(true);
15578 }
15579 if (incoming.get(1)) {
15580 struct.e = new CentralDogmaException();
15581 struct.e.read(iprot);
15582 struct.setEIsSet(true);
15583 }
15584 }
15585 }
15586
15587 }
15588
15589 public static class normalizeRevision_args implements org.apache.thrift.TBase<normalizeRevision_args, normalizeRevision_args._Fields>, java.io.Serializable, Cloneable, Comparable<normalizeRevision_args> {
15590 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_args");
15591
15592 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
15593 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
15594 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
15595
15596 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15597 static {
15598 schemes.put(StandardScheme.class, new normalizeRevision_argsStandardSchemeFactory());
15599 schemes.put(TupleScheme.class, new normalizeRevision_argsTupleSchemeFactory());
15600 }
15601
15602 public String projectName;
15603 public String repositoryName;
15604 public Revision revision;
15605
15606
15607 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15608 PROJECT_NAME((short)1, "projectName"),
15609 REPOSITORY_NAME((short)2, "repositoryName"),
15610 REVISION((short)3, "revision");
15611
15612 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15613
15614 static {
15615 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15616 byName.put(field.getFieldName(), field);
15617 }
15618 }
15619
15620
15621
15622
15623 public static _Fields findByThriftId(int fieldId) {
15624 switch(fieldId) {
15625 case 1:
15626 return PROJECT_NAME;
15627 case 2:
15628 return REPOSITORY_NAME;
15629 case 3:
15630 return REVISION;
15631 default:
15632 return null;
15633 }
15634 }
15635
15636
15637
15638
15639
15640 public static _Fields findByThriftIdOrThrow(int fieldId) {
15641 _Fields fields = findByThriftId(fieldId);
15642 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15643 return fields;
15644 }
15645
15646
15647
15648
15649 public static _Fields findByName(String name) {
15650 return byName.get(name);
15651 }
15652
15653 private final short _thriftId;
15654 private final String _fieldName;
15655
15656 _Fields(short thriftId, String fieldName) {
15657 _thriftId = thriftId;
15658 _fieldName = fieldName;
15659 }
15660
15661 public short getThriftFieldId() {
15662 return _thriftId;
15663 }
15664
15665 public String getFieldName() {
15666 return _fieldName;
15667 }
15668 }
15669
15670
15671 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15672 static {
15673 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15674 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
15675 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15676 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
15677 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15678 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
15679 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
15680 metaDataMap = Collections.unmodifiableMap(tmpMap);
15681 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(normalizeRevision_args.class, metaDataMap);
15682 }
15683
15684 public normalizeRevision_args() {
15685 }
15686
15687 public normalizeRevision_args(
15688 String projectName,
15689 String repositoryName,
15690 Revision revision)
15691 {
15692 this();
15693 this.projectName = projectName;
15694 this.repositoryName = repositoryName;
15695 this.revision = revision;
15696 }
15697
15698
15699
15700
15701 public normalizeRevision_args(normalizeRevision_args other) {
15702 if (other.isSetProjectName()) {
15703 this.projectName = other.projectName;
15704 }
15705 if (other.isSetRepositoryName()) {
15706 this.repositoryName = other.repositoryName;
15707 }
15708 if (other.isSetRevision()) {
15709 this.revision = new Revision(other.revision);
15710 }
15711 }
15712
15713 public normalizeRevision_args deepCopy() {
15714 return new normalizeRevision_args(this);
15715 }
15716
15717 @Override
15718 public void clear() {
15719 this.projectName = null;
15720 this.repositoryName = null;
15721 this.revision = null;
15722 }
15723
15724 public String getProjectName() {
15725 return this.projectName;
15726 }
15727
15728 public normalizeRevision_args setProjectName(String projectName) {
15729 this.projectName = projectName;
15730 return this;
15731 }
15732
15733 public void unsetProjectName() {
15734 this.projectName = null;
15735 }
15736
15737
15738 public boolean isSetProjectName() {
15739 return this.projectName != null;
15740 }
15741
15742 public void setProjectNameIsSet(boolean value) {
15743 if (!value) {
15744 this.projectName = null;
15745 }
15746 }
15747
15748 public String getRepositoryName() {
15749 return this.repositoryName;
15750 }
15751
15752 public normalizeRevision_args setRepositoryName(String repositoryName) {
15753 this.repositoryName = repositoryName;
15754 return this;
15755 }
15756
15757 public void unsetRepositoryName() {
15758 this.repositoryName = null;
15759 }
15760
15761
15762 public boolean isSetRepositoryName() {
15763 return this.repositoryName != null;
15764 }
15765
15766 public void setRepositoryNameIsSet(boolean value) {
15767 if (!value) {
15768 this.repositoryName = null;
15769 }
15770 }
15771
15772 public Revision getRevision() {
15773 return this.revision;
15774 }
15775
15776 public normalizeRevision_args setRevision(Revision revision) {
15777 this.revision = revision;
15778 return this;
15779 }
15780
15781 public void unsetRevision() {
15782 this.revision = null;
15783 }
15784
15785
15786 public boolean isSetRevision() {
15787 return this.revision != null;
15788 }
15789
15790 public void setRevisionIsSet(boolean value) {
15791 if (!value) {
15792 this.revision = null;
15793 }
15794 }
15795
15796 public void setFieldValue(_Fields field, Object value) {
15797 switch (field) {
15798 case PROJECT_NAME:
15799 if (value == null) {
15800 unsetProjectName();
15801 } else {
15802 setProjectName((String)value);
15803 }
15804 break;
15805
15806 case REPOSITORY_NAME:
15807 if (value == null) {
15808 unsetRepositoryName();
15809 } else {
15810 setRepositoryName((String)value);
15811 }
15812 break;
15813
15814 case REVISION:
15815 if (value == null) {
15816 unsetRevision();
15817 } else {
15818 setRevision((Revision)value);
15819 }
15820 break;
15821
15822 }
15823 }
15824
15825 public Object getFieldValue(_Fields field) {
15826 switch (field) {
15827 case PROJECT_NAME:
15828 return getProjectName();
15829
15830 case REPOSITORY_NAME:
15831 return getRepositoryName();
15832
15833 case REVISION:
15834 return getRevision();
15835
15836 }
15837 throw new IllegalStateException();
15838 }
15839
15840
15841 public boolean isSet(_Fields field) {
15842 if (field == null) {
15843 throw new IllegalArgumentException();
15844 }
15845
15846 switch (field) {
15847 case PROJECT_NAME:
15848 return isSetProjectName();
15849 case REPOSITORY_NAME:
15850 return isSetRepositoryName();
15851 case REVISION:
15852 return isSetRevision();
15853 }
15854 throw new IllegalStateException();
15855 }
15856
15857 @Override
15858 public boolean equals(Object that) {
15859 if (that == null)
15860 return false;
15861 if (that instanceof normalizeRevision_args)
15862 return this.equals((normalizeRevision_args)that);
15863 return false;
15864 }
15865
15866 public boolean equals(normalizeRevision_args that) {
15867 if (that == null)
15868 return false;
15869
15870 boolean this_present_projectName = true && this.isSetProjectName();
15871 boolean that_present_projectName = true && that.isSetProjectName();
15872 if (this_present_projectName || that_present_projectName) {
15873 if (!(this_present_projectName && that_present_projectName))
15874 return false;
15875 if (!this.projectName.equals(that.projectName))
15876 return false;
15877 }
15878
15879 boolean this_present_repositoryName = true && this.isSetRepositoryName();
15880 boolean that_present_repositoryName = true && that.isSetRepositoryName();
15881 if (this_present_repositoryName || that_present_repositoryName) {
15882 if (!(this_present_repositoryName && that_present_repositoryName))
15883 return false;
15884 if (!this.repositoryName.equals(that.repositoryName))
15885 return false;
15886 }
15887
15888 boolean this_present_revision = true && this.isSetRevision();
15889 boolean that_present_revision = true && that.isSetRevision();
15890 if (this_present_revision || that_present_revision) {
15891 if (!(this_present_revision && that_present_revision))
15892 return false;
15893 if (!this.revision.equals(that.revision))
15894 return false;
15895 }
15896
15897 return true;
15898 }
15899
15900 @Override
15901 public int hashCode() {
15902 List<Object> list = new ArrayList<Object>();
15903
15904 boolean present_projectName = true && (isSetProjectName());
15905 list.add(present_projectName);
15906 if (present_projectName)
15907 list.add(projectName);
15908
15909 boolean present_repositoryName = true && (isSetRepositoryName());
15910 list.add(present_repositoryName);
15911 if (present_repositoryName)
15912 list.add(repositoryName);
15913
15914 boolean present_revision = true && (isSetRevision());
15915 list.add(present_revision);
15916 if (present_revision)
15917 list.add(revision);
15918
15919 return list.hashCode();
15920 }
15921
15922 @Override
15923 public int compareTo(normalizeRevision_args other) {
15924 if (!getClass().equals(other.getClass())) {
15925 return getClass().getName().compareTo(other.getClass().getName());
15926 }
15927
15928 int lastComparison = 0;
15929
15930 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
15931 if (lastComparison != 0) {
15932 return lastComparison;
15933 }
15934 if (isSetProjectName()) {
15935 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
15936 if (lastComparison != 0) {
15937 return lastComparison;
15938 }
15939 }
15940 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
15941 if (lastComparison != 0) {
15942 return lastComparison;
15943 }
15944 if (isSetRepositoryName()) {
15945 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
15946 if (lastComparison != 0) {
15947 return lastComparison;
15948 }
15949 }
15950 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
15951 if (lastComparison != 0) {
15952 return lastComparison;
15953 }
15954 if (isSetRevision()) {
15955 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
15956 if (lastComparison != 0) {
15957 return lastComparison;
15958 }
15959 }
15960 return 0;
15961 }
15962
15963 public _Fields fieldForId(int fieldId) {
15964 return _Fields.findByThriftId(fieldId);
15965 }
15966
15967 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15968 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15969 }
15970
15971 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15972 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15973 }
15974
15975 @Override
15976 public String toString() {
15977 StringBuilder sb = new StringBuilder("normalizeRevision_args(");
15978 boolean first = true;
15979
15980 sb.append("projectName:");
15981 if (this.projectName == null) {
15982 sb.append("null");
15983 } else {
15984 sb.append(this.projectName);
15985 }
15986 first = false;
15987 if (!first) sb.append(", ");
15988 sb.append("repositoryName:");
15989 if (this.repositoryName == null) {
15990 sb.append("null");
15991 } else {
15992 sb.append(this.repositoryName);
15993 }
15994 first = false;
15995 if (!first) sb.append(", ");
15996 sb.append("revision:");
15997 if (this.revision == null) {
15998 sb.append("null");
15999 } else {
16000 sb.append(this.revision);
16001 }
16002 first = false;
16003 sb.append(")");
16004 return sb.toString();
16005 }
16006
16007 public void validate() throws org.apache.thrift.TException {
16008
16009
16010 if (revision != null) {
16011 revision.validate();
16012 }
16013 }
16014
16015 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16016 try {
16017 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16018 } catch (org.apache.thrift.TException te) {
16019 throw new java.io.IOException(te);
16020 }
16021 }
16022
16023 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16024 try {
16025 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16026 } catch (org.apache.thrift.TException te) {
16027 throw new java.io.IOException(te);
16028 }
16029 }
16030
16031 private static class normalizeRevision_argsStandardSchemeFactory implements SchemeFactory {
16032 public normalizeRevision_argsStandardScheme getScheme() {
16033 return new normalizeRevision_argsStandardScheme();
16034 }
16035 }
16036
16037 private static class normalizeRevision_argsStandardScheme extends StandardScheme<normalizeRevision_args> {
16038
16039 public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_args struct) throws org.apache.thrift.TException {
16040 org.apache.thrift.protocol.TField schemeField;
16041 iprot.readStructBegin();
16042 while (true)
16043 {
16044 schemeField = iprot.readFieldBegin();
16045 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16046 break;
16047 }
16048 switch (schemeField.id) {
16049 case 1:
16050 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16051 struct.projectName = iprot.readString();
16052 struct.setProjectNameIsSet(true);
16053 } else {
16054 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16055 }
16056 break;
16057 case 2:
16058 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16059 struct.repositoryName = iprot.readString();
16060 struct.setRepositoryNameIsSet(true);
16061 } else {
16062 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16063 }
16064 break;
16065 case 3:
16066 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16067 struct.revision = new Revision();
16068 struct.revision.read(iprot);
16069 struct.setRevisionIsSet(true);
16070 } else {
16071 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16072 }
16073 break;
16074 default:
16075 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16076 }
16077 iprot.readFieldEnd();
16078 }
16079 iprot.readStructEnd();
16080
16081
16082 struct.validate();
16083 }
16084
16085 public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_args struct) throws org.apache.thrift.TException {
16086 struct.validate();
16087
16088 oprot.writeStructBegin(STRUCT_DESC);
16089 if (struct.projectName != null) {
16090 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
16091 oprot.writeString(struct.projectName);
16092 oprot.writeFieldEnd();
16093 }
16094 if (struct.repositoryName != null) {
16095 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
16096 oprot.writeString(struct.repositoryName);
16097 oprot.writeFieldEnd();
16098 }
16099 if (struct.revision != null) {
16100 oprot.writeFieldBegin(REVISION_FIELD_DESC);
16101 struct.revision.write(oprot);
16102 oprot.writeFieldEnd();
16103 }
16104 oprot.writeFieldStop();
16105 oprot.writeStructEnd();
16106 }
16107
16108 }
16109
16110 private static class normalizeRevision_argsTupleSchemeFactory implements SchemeFactory {
16111 public normalizeRevision_argsTupleScheme getScheme() {
16112 return new normalizeRevision_argsTupleScheme();
16113 }
16114 }
16115
16116 private static class normalizeRevision_argsTupleScheme extends TupleScheme<normalizeRevision_args> {
16117
16118 @Override
16119 public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException {
16120 TTupleProtocol oprot = (TTupleProtocol) prot;
16121 BitSet optionals = new BitSet();
16122 if (struct.isSetProjectName()) {
16123 optionals.set(0);
16124 }
16125 if (struct.isSetRepositoryName()) {
16126 optionals.set(1);
16127 }
16128 if (struct.isSetRevision()) {
16129 optionals.set(2);
16130 }
16131 oprot.writeBitSet(optionals, 3);
16132 if (struct.isSetProjectName()) {
16133 oprot.writeString(struct.projectName);
16134 }
16135 if (struct.isSetRepositoryName()) {
16136 oprot.writeString(struct.repositoryName);
16137 }
16138 if (struct.isSetRevision()) {
16139 struct.revision.write(oprot);
16140 }
16141 }
16142
16143 @Override
16144 public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException {
16145 TTupleProtocol iprot = (TTupleProtocol) prot;
16146 BitSet incoming = iprot.readBitSet(3);
16147 if (incoming.get(0)) {
16148 struct.projectName = iprot.readString();
16149 struct.setProjectNameIsSet(true);
16150 }
16151 if (incoming.get(1)) {
16152 struct.repositoryName = iprot.readString();
16153 struct.setRepositoryNameIsSet(true);
16154 }
16155 if (incoming.get(2)) {
16156 struct.revision = new Revision();
16157 struct.revision.read(iprot);
16158 struct.setRevisionIsSet(true);
16159 }
16160 }
16161 }
16162
16163 }
16164
16165 public static class normalizeRevision_result implements org.apache.thrift.TBase<normalizeRevision_result, normalizeRevision_result._Fields>, java.io.Serializable, Cloneable, Comparable<normalizeRevision_result> {
16166 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_result");
16167
16168 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
16169 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16170
16171 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16172 static {
16173 schemes.put(StandardScheme.class, new normalizeRevision_resultStandardSchemeFactory());
16174 schemes.put(TupleScheme.class, new normalizeRevision_resultTupleSchemeFactory());
16175 }
16176
16177 public Revision success;
16178 public CentralDogmaException e;
16179
16180
16181 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16182 SUCCESS((short)0, "success"),
16183 E((short)1, "e");
16184
16185 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16186
16187 static {
16188 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16189 byName.put(field.getFieldName(), field);
16190 }
16191 }
16192
16193
16194
16195
16196 public static _Fields findByThriftId(int fieldId) {
16197 switch(fieldId) {
16198 case 0:
16199 return SUCCESS;
16200 case 1:
16201 return E;
16202 default:
16203 return null;
16204 }
16205 }
16206
16207
16208
16209
16210
16211 public static _Fields findByThriftIdOrThrow(int fieldId) {
16212 _Fields fields = findByThriftId(fieldId);
16213 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16214 return fields;
16215 }
16216
16217
16218
16219
16220 public static _Fields findByName(String name) {
16221 return byName.get(name);
16222 }
16223
16224 private final short _thriftId;
16225 private final String _fieldName;
16226
16227 _Fields(short thriftId, String fieldName) {
16228 _thriftId = thriftId;
16229 _fieldName = fieldName;
16230 }
16231
16232 public short getThriftFieldId() {
16233 return _thriftId;
16234 }
16235
16236 public String getFieldName() {
16237 return _fieldName;
16238 }
16239 }
16240
16241
16242 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16243 static {
16244 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16245 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16246 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
16247 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
16248 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16249 metaDataMap = Collections.unmodifiableMap(tmpMap);
16250 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(normalizeRevision_result.class, metaDataMap);
16251 }
16252
16253 public normalizeRevision_result() {
16254 }
16255
16256 public normalizeRevision_result(
16257 Revision success,
16258 CentralDogmaException e)
16259 {
16260 this();
16261 this.success = success;
16262 this.e = e;
16263 }
16264
16265
16266
16267
16268 public normalizeRevision_result(normalizeRevision_result other) {
16269 if (other.isSetSuccess()) {
16270 this.success = new Revision(other.success);
16271 }
16272 if (other.isSetE()) {
16273 this.e = new CentralDogmaException(other.e);
16274 }
16275 }
16276
16277 public normalizeRevision_result deepCopy() {
16278 return new normalizeRevision_result(this);
16279 }
16280
16281 @Override
16282 public void clear() {
16283 this.success = null;
16284 this.e = null;
16285 }
16286
16287 public Revision getSuccess() {
16288 return this.success;
16289 }
16290
16291 public normalizeRevision_result setSuccess(Revision success) {
16292 this.success = success;
16293 return this;
16294 }
16295
16296 public void unsetSuccess() {
16297 this.success = null;
16298 }
16299
16300
16301 public boolean isSetSuccess() {
16302 return this.success != null;
16303 }
16304
16305 public void setSuccessIsSet(boolean value) {
16306 if (!value) {
16307 this.success = null;
16308 }
16309 }
16310
16311 public CentralDogmaException getE() {
16312 return this.e;
16313 }
16314
16315 public normalizeRevision_result setE(CentralDogmaException e) {
16316 this.e = e;
16317 return this;
16318 }
16319
16320 public void unsetE() {
16321 this.e = null;
16322 }
16323
16324
16325 public boolean isSetE() {
16326 return this.e != null;
16327 }
16328
16329 public void setEIsSet(boolean value) {
16330 if (!value) {
16331 this.e = null;
16332 }
16333 }
16334
16335 public void setFieldValue(_Fields field, Object value) {
16336 switch (field) {
16337 case SUCCESS:
16338 if (value == null) {
16339 unsetSuccess();
16340 } else {
16341 setSuccess((Revision)value);
16342 }
16343 break;
16344
16345 case E:
16346 if (value == null) {
16347 unsetE();
16348 } else {
16349 setE((CentralDogmaException)value);
16350 }
16351 break;
16352
16353 }
16354 }
16355
16356 public Object getFieldValue(_Fields field) {
16357 switch (field) {
16358 case SUCCESS:
16359 return getSuccess();
16360
16361 case E:
16362 return getE();
16363
16364 }
16365 throw new IllegalStateException();
16366 }
16367
16368
16369 public boolean isSet(_Fields field) {
16370 if (field == null) {
16371 throw new IllegalArgumentException();
16372 }
16373
16374 switch (field) {
16375 case SUCCESS:
16376 return isSetSuccess();
16377 case E:
16378 return isSetE();
16379 }
16380 throw new IllegalStateException();
16381 }
16382
16383 @Override
16384 public boolean equals(Object that) {
16385 if (that == null)
16386 return false;
16387 if (that instanceof normalizeRevision_result)
16388 return this.equals((normalizeRevision_result)that);
16389 return false;
16390 }
16391
16392 public boolean equals(normalizeRevision_result that) {
16393 if (that == null)
16394 return false;
16395
16396 boolean this_present_success = true && this.isSetSuccess();
16397 boolean that_present_success = true && that.isSetSuccess();
16398 if (this_present_success || that_present_success) {
16399 if (!(this_present_success && that_present_success))
16400 return false;
16401 if (!this.success.equals(that.success))
16402 return false;
16403 }
16404
16405 boolean this_present_e = true && this.isSetE();
16406 boolean that_present_e = true && that.isSetE();
16407 if (this_present_e || that_present_e) {
16408 if (!(this_present_e && that_present_e))
16409 return false;
16410 if (!this.e.equals(that.e))
16411 return false;
16412 }
16413
16414 return true;
16415 }
16416
16417 @Override
16418 public int hashCode() {
16419 List<Object> list = new ArrayList<Object>();
16420
16421 boolean present_success = true && (isSetSuccess());
16422 list.add(present_success);
16423 if (present_success)
16424 list.add(success);
16425
16426 boolean present_e = true && (isSetE());
16427 list.add(present_e);
16428 if (present_e)
16429 list.add(e);
16430
16431 return list.hashCode();
16432 }
16433
16434 @Override
16435 public int compareTo(normalizeRevision_result other) {
16436 if (!getClass().equals(other.getClass())) {
16437 return getClass().getName().compareTo(other.getClass().getName());
16438 }
16439
16440 int lastComparison = 0;
16441
16442 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16443 if (lastComparison != 0) {
16444 return lastComparison;
16445 }
16446 if (isSetSuccess()) {
16447 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16448 if (lastComparison != 0) {
16449 return lastComparison;
16450 }
16451 }
16452 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
16453 if (lastComparison != 0) {
16454 return lastComparison;
16455 }
16456 if (isSetE()) {
16457 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
16458 if (lastComparison != 0) {
16459 return lastComparison;
16460 }
16461 }
16462 return 0;
16463 }
16464
16465 public _Fields fieldForId(int fieldId) {
16466 return _Fields.findByThriftId(fieldId);
16467 }
16468
16469 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16470 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16471 }
16472
16473 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16474 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16475 }
16476
16477 @Override
16478 public String toString() {
16479 StringBuilder sb = new StringBuilder("normalizeRevision_result(");
16480 boolean first = true;
16481
16482 sb.append("success:");
16483 if (this.success == null) {
16484 sb.append("null");
16485 } else {
16486 sb.append(this.success);
16487 }
16488 first = false;
16489 if (!first) sb.append(", ");
16490 sb.append("e:");
16491 if (this.e == null) {
16492 sb.append("null");
16493 } else {
16494 sb.append(this.e);
16495 }
16496 first = false;
16497 sb.append(")");
16498 return sb.toString();
16499 }
16500
16501 public void validate() throws org.apache.thrift.TException {
16502
16503
16504 if (success != null) {
16505 success.validate();
16506 }
16507 }
16508
16509 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16510 try {
16511 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16512 } catch (org.apache.thrift.TException te) {
16513 throw new java.io.IOException(te);
16514 }
16515 }
16516
16517 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16518 try {
16519 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16520 } catch (org.apache.thrift.TException te) {
16521 throw new java.io.IOException(te);
16522 }
16523 }
16524
16525 private static class normalizeRevision_resultStandardSchemeFactory implements SchemeFactory {
16526 public normalizeRevision_resultStandardScheme getScheme() {
16527 return new normalizeRevision_resultStandardScheme();
16528 }
16529 }
16530
16531 private static class normalizeRevision_resultStandardScheme extends StandardScheme<normalizeRevision_result> {
16532
16533 public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_result struct) throws org.apache.thrift.TException {
16534 org.apache.thrift.protocol.TField schemeField;
16535 iprot.readStructBegin();
16536 while (true)
16537 {
16538 schemeField = iprot.readFieldBegin();
16539 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16540 break;
16541 }
16542 switch (schemeField.id) {
16543 case 0:
16544 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16545 struct.success = new Revision();
16546 struct.success.read(iprot);
16547 struct.setSuccessIsSet(true);
16548 } else {
16549 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16550 }
16551 break;
16552 case 1:
16553 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
16554 struct.e = new CentralDogmaException();
16555 struct.e.read(iprot);
16556 struct.setEIsSet(true);
16557 } else {
16558 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16559 }
16560 break;
16561 default:
16562 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16563 }
16564 iprot.readFieldEnd();
16565 }
16566 iprot.readStructEnd();
16567
16568
16569 struct.validate();
16570 }
16571
16572 public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_result struct) throws org.apache.thrift.TException {
16573 struct.validate();
16574
16575 oprot.writeStructBegin(STRUCT_DESC);
16576 if (struct.success != null) {
16577 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16578 struct.success.write(oprot);
16579 oprot.writeFieldEnd();
16580 }
16581 if (struct.e != null) {
16582 oprot.writeFieldBegin(E_FIELD_DESC);
16583 struct.e.write(oprot);
16584 oprot.writeFieldEnd();
16585 }
16586 oprot.writeFieldStop();
16587 oprot.writeStructEnd();
16588 }
16589
16590 }
16591
16592 private static class normalizeRevision_resultTupleSchemeFactory implements SchemeFactory {
16593 public normalizeRevision_resultTupleScheme getScheme() {
16594 return new normalizeRevision_resultTupleScheme();
16595 }
16596 }
16597
16598 private static class normalizeRevision_resultTupleScheme extends TupleScheme<normalizeRevision_result> {
16599
16600 @Override
16601 public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException {
16602 TTupleProtocol oprot = (TTupleProtocol) prot;
16603 BitSet optionals = new BitSet();
16604 if (struct.isSetSuccess()) {
16605 optionals.set(0);
16606 }
16607 if (struct.isSetE()) {
16608 optionals.set(1);
16609 }
16610 oprot.writeBitSet(optionals, 2);
16611 if (struct.isSetSuccess()) {
16612 struct.success.write(oprot);
16613 }
16614 if (struct.isSetE()) {
16615 struct.e.write(oprot);
16616 }
16617 }
16618
16619 @Override
16620 public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException {
16621 TTupleProtocol iprot = (TTupleProtocol) prot;
16622 BitSet incoming = iprot.readBitSet(2);
16623 if (incoming.get(0)) {
16624 struct.success = new Revision();
16625 struct.success.read(iprot);
16626 struct.setSuccessIsSet(true);
16627 }
16628 if (incoming.get(1)) {
16629 struct.e = new CentralDogmaException();
16630 struct.e.read(iprot);
16631 struct.setEIsSet(true);
16632 }
16633 }
16634 }
16635
16636 }
16637
16638 public static class listFiles_args implements org.apache.thrift.TBase<listFiles_args, listFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<listFiles_args> {
16639 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_args");
16640
16641 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
16642 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
16643 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
16644 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
16645
16646 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16647 static {
16648 schemes.put(StandardScheme.class, new listFiles_argsStandardSchemeFactory());
16649 schemes.put(TupleScheme.class, new listFiles_argsTupleSchemeFactory());
16650 }
16651
16652 public String projectName;
16653 public String repositoryName;
16654 public Revision revision;
16655 public String pathPattern;
16656
16657
16658 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16659 PROJECT_NAME((short)1, "projectName"),
16660 REPOSITORY_NAME((short)2, "repositoryName"),
16661 REVISION((short)3, "revision"),
16662 PATH_PATTERN((short)4, "pathPattern");
16663
16664 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16665
16666 static {
16667 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16668 byName.put(field.getFieldName(), field);
16669 }
16670 }
16671
16672
16673
16674
16675 public static _Fields findByThriftId(int fieldId) {
16676 switch(fieldId) {
16677 case 1:
16678 return PROJECT_NAME;
16679 case 2:
16680 return REPOSITORY_NAME;
16681 case 3:
16682 return REVISION;
16683 case 4:
16684 return PATH_PATTERN;
16685 default:
16686 return null;
16687 }
16688 }
16689
16690
16691
16692
16693
16694 public static _Fields findByThriftIdOrThrow(int fieldId) {
16695 _Fields fields = findByThriftId(fieldId);
16696 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16697 return fields;
16698 }
16699
16700
16701
16702
16703 public static _Fields findByName(String name) {
16704 return byName.get(name);
16705 }
16706
16707 private final short _thriftId;
16708 private final String _fieldName;
16709
16710 _Fields(short thriftId, String fieldName) {
16711 _thriftId = thriftId;
16712 _fieldName = fieldName;
16713 }
16714
16715 public short getThriftFieldId() {
16716 return _thriftId;
16717 }
16718
16719 public String getFieldName() {
16720 return _fieldName;
16721 }
16722 }
16723
16724
16725 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16726 static {
16727 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16728 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
16729 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16730 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
16731 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16732 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
16733 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
16734 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
16735 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16736 metaDataMap = Collections.unmodifiableMap(tmpMap);
16737 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listFiles_args.class, metaDataMap);
16738 }
16739
16740 public listFiles_args() {
16741 }
16742
16743 public listFiles_args(
16744 String projectName,
16745 String repositoryName,
16746 Revision revision,
16747 String pathPattern)
16748 {
16749 this();
16750 this.projectName = projectName;
16751 this.repositoryName = repositoryName;
16752 this.revision = revision;
16753 this.pathPattern = pathPattern;
16754 }
16755
16756
16757
16758
16759 public listFiles_args(listFiles_args other) {
16760 if (other.isSetProjectName()) {
16761 this.projectName = other.projectName;
16762 }
16763 if (other.isSetRepositoryName()) {
16764 this.repositoryName = other.repositoryName;
16765 }
16766 if (other.isSetRevision()) {
16767 this.revision = new Revision(other.revision);
16768 }
16769 if (other.isSetPathPattern()) {
16770 this.pathPattern = other.pathPattern;
16771 }
16772 }
16773
16774 public listFiles_args deepCopy() {
16775 return new listFiles_args(this);
16776 }
16777
16778 @Override
16779 public void clear() {
16780 this.projectName = null;
16781 this.repositoryName = null;
16782 this.revision = null;
16783 this.pathPattern = null;
16784 }
16785
16786 public String getProjectName() {
16787 return this.projectName;
16788 }
16789
16790 public listFiles_args setProjectName(String projectName) {
16791 this.projectName = projectName;
16792 return this;
16793 }
16794
16795 public void unsetProjectName() {
16796 this.projectName = null;
16797 }
16798
16799
16800 public boolean isSetProjectName() {
16801 return this.projectName != null;
16802 }
16803
16804 public void setProjectNameIsSet(boolean value) {
16805 if (!value) {
16806 this.projectName = null;
16807 }
16808 }
16809
16810 public String getRepositoryName() {
16811 return this.repositoryName;
16812 }
16813
16814 public listFiles_args setRepositoryName(String repositoryName) {
16815 this.repositoryName = repositoryName;
16816 return this;
16817 }
16818
16819 public void unsetRepositoryName() {
16820 this.repositoryName = null;
16821 }
16822
16823
16824 public boolean isSetRepositoryName() {
16825 return this.repositoryName != null;
16826 }
16827
16828 public void setRepositoryNameIsSet(boolean value) {
16829 if (!value) {
16830 this.repositoryName = null;
16831 }
16832 }
16833
16834 public Revision getRevision() {
16835 return this.revision;
16836 }
16837
16838 public listFiles_args setRevision(Revision revision) {
16839 this.revision = revision;
16840 return this;
16841 }
16842
16843 public void unsetRevision() {
16844 this.revision = null;
16845 }
16846
16847
16848 public boolean isSetRevision() {
16849 return this.revision != null;
16850 }
16851
16852 public void setRevisionIsSet(boolean value) {
16853 if (!value) {
16854 this.revision = null;
16855 }
16856 }
16857
16858 public String getPathPattern() {
16859 return this.pathPattern;
16860 }
16861
16862 public listFiles_args setPathPattern(String pathPattern) {
16863 this.pathPattern = pathPattern;
16864 return this;
16865 }
16866
16867 public void unsetPathPattern() {
16868 this.pathPattern = null;
16869 }
16870
16871
16872 public boolean isSetPathPattern() {
16873 return this.pathPattern != null;
16874 }
16875
16876 public void setPathPatternIsSet(boolean value) {
16877 if (!value) {
16878 this.pathPattern = null;
16879 }
16880 }
16881
16882 public void setFieldValue(_Fields field, Object value) {
16883 switch (field) {
16884 case PROJECT_NAME:
16885 if (value == null) {
16886 unsetProjectName();
16887 } else {
16888 setProjectName((String)value);
16889 }
16890 break;
16891
16892 case REPOSITORY_NAME:
16893 if (value == null) {
16894 unsetRepositoryName();
16895 } else {
16896 setRepositoryName((String)value);
16897 }
16898 break;
16899
16900 case REVISION:
16901 if (value == null) {
16902 unsetRevision();
16903 } else {
16904 setRevision((Revision)value);
16905 }
16906 break;
16907
16908 case PATH_PATTERN:
16909 if (value == null) {
16910 unsetPathPattern();
16911 } else {
16912 setPathPattern((String)value);
16913 }
16914 break;
16915
16916 }
16917 }
16918
16919 public Object getFieldValue(_Fields field) {
16920 switch (field) {
16921 case PROJECT_NAME:
16922 return getProjectName();
16923
16924 case REPOSITORY_NAME:
16925 return getRepositoryName();
16926
16927 case REVISION:
16928 return getRevision();
16929
16930 case PATH_PATTERN:
16931 return getPathPattern();
16932
16933 }
16934 throw new IllegalStateException();
16935 }
16936
16937
16938 public boolean isSet(_Fields field) {
16939 if (field == null) {
16940 throw new IllegalArgumentException();
16941 }
16942
16943 switch (field) {
16944 case PROJECT_NAME:
16945 return isSetProjectName();
16946 case REPOSITORY_NAME:
16947 return isSetRepositoryName();
16948 case REVISION:
16949 return isSetRevision();
16950 case PATH_PATTERN:
16951 return isSetPathPattern();
16952 }
16953 throw new IllegalStateException();
16954 }
16955
16956 @Override
16957 public boolean equals(Object that) {
16958 if (that == null)
16959 return false;
16960 if (that instanceof listFiles_args)
16961 return this.equals((listFiles_args)that);
16962 return false;
16963 }
16964
16965 public boolean equals(listFiles_args that) {
16966 if (that == null)
16967 return false;
16968
16969 boolean this_present_projectName = true && this.isSetProjectName();
16970 boolean that_present_projectName = true && that.isSetProjectName();
16971 if (this_present_projectName || that_present_projectName) {
16972 if (!(this_present_projectName && that_present_projectName))
16973 return false;
16974 if (!this.projectName.equals(that.projectName))
16975 return false;
16976 }
16977
16978 boolean this_present_repositoryName = true && this.isSetRepositoryName();
16979 boolean that_present_repositoryName = true && that.isSetRepositoryName();
16980 if (this_present_repositoryName || that_present_repositoryName) {
16981 if (!(this_present_repositoryName && that_present_repositoryName))
16982 return false;
16983 if (!this.repositoryName.equals(that.repositoryName))
16984 return false;
16985 }
16986
16987 boolean this_present_revision = true && this.isSetRevision();
16988 boolean that_present_revision = true && that.isSetRevision();
16989 if (this_present_revision || that_present_revision) {
16990 if (!(this_present_revision && that_present_revision))
16991 return false;
16992 if (!this.revision.equals(that.revision))
16993 return false;
16994 }
16995
16996 boolean this_present_pathPattern = true && this.isSetPathPattern();
16997 boolean that_present_pathPattern = true && that.isSetPathPattern();
16998 if (this_present_pathPattern || that_present_pathPattern) {
16999 if (!(this_present_pathPattern && that_present_pathPattern))
17000 return false;
17001 if (!this.pathPattern.equals(that.pathPattern))
17002 return false;
17003 }
17004
17005 return true;
17006 }
17007
17008 @Override
17009 public int hashCode() {
17010 List<Object> list = new ArrayList<Object>();
17011
17012 boolean present_projectName = true && (isSetProjectName());
17013 list.add(present_projectName);
17014 if (present_projectName)
17015 list.add(projectName);
17016
17017 boolean present_repositoryName = true && (isSetRepositoryName());
17018 list.add(present_repositoryName);
17019 if (present_repositoryName)
17020 list.add(repositoryName);
17021
17022 boolean present_revision = true && (isSetRevision());
17023 list.add(present_revision);
17024 if (present_revision)
17025 list.add(revision);
17026
17027 boolean present_pathPattern = true && (isSetPathPattern());
17028 list.add(present_pathPattern);
17029 if (present_pathPattern)
17030 list.add(pathPattern);
17031
17032 return list.hashCode();
17033 }
17034
17035 @Override
17036 public int compareTo(listFiles_args other) {
17037 if (!getClass().equals(other.getClass())) {
17038 return getClass().getName().compareTo(other.getClass().getName());
17039 }
17040
17041 int lastComparison = 0;
17042
17043 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
17044 if (lastComparison != 0) {
17045 return lastComparison;
17046 }
17047 if (isSetProjectName()) {
17048 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
17049 if (lastComparison != 0) {
17050 return lastComparison;
17051 }
17052 }
17053 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
17054 if (lastComparison != 0) {
17055 return lastComparison;
17056 }
17057 if (isSetRepositoryName()) {
17058 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
17059 if (lastComparison != 0) {
17060 return lastComparison;
17061 }
17062 }
17063 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
17064 if (lastComparison != 0) {
17065 return lastComparison;
17066 }
17067 if (isSetRevision()) {
17068 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
17069 if (lastComparison != 0) {
17070 return lastComparison;
17071 }
17072 }
17073 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
17074 if (lastComparison != 0) {
17075 return lastComparison;
17076 }
17077 if (isSetPathPattern()) {
17078 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
17079 if (lastComparison != 0) {
17080 return lastComparison;
17081 }
17082 }
17083 return 0;
17084 }
17085
17086 public _Fields fieldForId(int fieldId) {
17087 return _Fields.findByThriftId(fieldId);
17088 }
17089
17090 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17091 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17092 }
17093
17094 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17095 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17096 }
17097
17098 @Override
17099 public String toString() {
17100 StringBuilder sb = new StringBuilder("listFiles_args(");
17101 boolean first = true;
17102
17103 sb.append("projectName:");
17104 if (this.projectName == null) {
17105 sb.append("null");
17106 } else {
17107 sb.append(this.projectName);
17108 }
17109 first = false;
17110 if (!first) sb.append(", ");
17111 sb.append("repositoryName:");
17112 if (this.repositoryName == null) {
17113 sb.append("null");
17114 } else {
17115 sb.append(this.repositoryName);
17116 }
17117 first = false;
17118 if (!first) sb.append(", ");
17119 sb.append("revision:");
17120 if (this.revision == null) {
17121 sb.append("null");
17122 } else {
17123 sb.append(this.revision);
17124 }
17125 first = false;
17126 if (!first) sb.append(", ");
17127 sb.append("pathPattern:");
17128 if (this.pathPattern == null) {
17129 sb.append("null");
17130 } else {
17131 sb.append(this.pathPattern);
17132 }
17133 first = false;
17134 sb.append(")");
17135 return sb.toString();
17136 }
17137
17138 public void validate() throws org.apache.thrift.TException {
17139
17140
17141 if (revision != null) {
17142 revision.validate();
17143 }
17144 }
17145
17146 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17147 try {
17148 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17149 } catch (org.apache.thrift.TException te) {
17150 throw new java.io.IOException(te);
17151 }
17152 }
17153
17154 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17155 try {
17156 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17157 } catch (org.apache.thrift.TException te) {
17158 throw new java.io.IOException(te);
17159 }
17160 }
17161
17162 private static class listFiles_argsStandardSchemeFactory implements SchemeFactory {
17163 public listFiles_argsStandardScheme getScheme() {
17164 return new listFiles_argsStandardScheme();
17165 }
17166 }
17167
17168 private static class listFiles_argsStandardScheme extends StandardScheme<listFiles_args> {
17169
17170 public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_args struct) throws org.apache.thrift.TException {
17171 org.apache.thrift.protocol.TField schemeField;
17172 iprot.readStructBegin();
17173 while (true)
17174 {
17175 schemeField = iprot.readFieldBegin();
17176 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17177 break;
17178 }
17179 switch (schemeField.id) {
17180 case 1:
17181 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17182 struct.projectName = iprot.readString();
17183 struct.setProjectNameIsSet(true);
17184 } else {
17185 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17186 }
17187 break;
17188 case 2:
17189 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17190 struct.repositoryName = iprot.readString();
17191 struct.setRepositoryNameIsSet(true);
17192 } else {
17193 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17194 }
17195 break;
17196 case 3:
17197 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17198 struct.revision = new Revision();
17199 struct.revision.read(iprot);
17200 struct.setRevisionIsSet(true);
17201 } else {
17202 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17203 }
17204 break;
17205 case 4:
17206 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17207 struct.pathPattern = iprot.readString();
17208 struct.setPathPatternIsSet(true);
17209 } else {
17210 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17211 }
17212 break;
17213 default:
17214 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17215 }
17216 iprot.readFieldEnd();
17217 }
17218 iprot.readStructEnd();
17219
17220
17221 struct.validate();
17222 }
17223
17224 public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_args struct) throws org.apache.thrift.TException {
17225 struct.validate();
17226
17227 oprot.writeStructBegin(STRUCT_DESC);
17228 if (struct.projectName != null) {
17229 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
17230 oprot.writeString(struct.projectName);
17231 oprot.writeFieldEnd();
17232 }
17233 if (struct.repositoryName != null) {
17234 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
17235 oprot.writeString(struct.repositoryName);
17236 oprot.writeFieldEnd();
17237 }
17238 if (struct.revision != null) {
17239 oprot.writeFieldBegin(REVISION_FIELD_DESC);
17240 struct.revision.write(oprot);
17241 oprot.writeFieldEnd();
17242 }
17243 if (struct.pathPattern != null) {
17244 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
17245 oprot.writeString(struct.pathPattern);
17246 oprot.writeFieldEnd();
17247 }
17248 oprot.writeFieldStop();
17249 oprot.writeStructEnd();
17250 }
17251
17252 }
17253
17254 private static class listFiles_argsTupleSchemeFactory implements SchemeFactory {
17255 public listFiles_argsTupleScheme getScheme() {
17256 return new listFiles_argsTupleScheme();
17257 }
17258 }
17259
17260 private static class listFiles_argsTupleScheme extends TupleScheme<listFiles_args> {
17261
17262 @Override
17263 public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException {
17264 TTupleProtocol oprot = (TTupleProtocol) prot;
17265 BitSet optionals = new BitSet();
17266 if (struct.isSetProjectName()) {
17267 optionals.set(0);
17268 }
17269 if (struct.isSetRepositoryName()) {
17270 optionals.set(1);
17271 }
17272 if (struct.isSetRevision()) {
17273 optionals.set(2);
17274 }
17275 if (struct.isSetPathPattern()) {
17276 optionals.set(3);
17277 }
17278 oprot.writeBitSet(optionals, 4);
17279 if (struct.isSetProjectName()) {
17280 oprot.writeString(struct.projectName);
17281 }
17282 if (struct.isSetRepositoryName()) {
17283 oprot.writeString(struct.repositoryName);
17284 }
17285 if (struct.isSetRevision()) {
17286 struct.revision.write(oprot);
17287 }
17288 if (struct.isSetPathPattern()) {
17289 oprot.writeString(struct.pathPattern);
17290 }
17291 }
17292
17293 @Override
17294 public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException {
17295 TTupleProtocol iprot = (TTupleProtocol) prot;
17296 BitSet incoming = iprot.readBitSet(4);
17297 if (incoming.get(0)) {
17298 struct.projectName = iprot.readString();
17299 struct.setProjectNameIsSet(true);
17300 }
17301 if (incoming.get(1)) {
17302 struct.repositoryName = iprot.readString();
17303 struct.setRepositoryNameIsSet(true);
17304 }
17305 if (incoming.get(2)) {
17306 struct.revision = new Revision();
17307 struct.revision.read(iprot);
17308 struct.setRevisionIsSet(true);
17309 }
17310 if (incoming.get(3)) {
17311 struct.pathPattern = iprot.readString();
17312 struct.setPathPatternIsSet(true);
17313 }
17314 }
17315 }
17316
17317 }
17318
17319 public static class listFiles_result implements org.apache.thrift.TBase<listFiles_result, listFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<listFiles_result> {
17320 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_result");
17321
17322 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
17323 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17324
17325 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17326 static {
17327 schemes.put(StandardScheme.class, new listFiles_resultStandardSchemeFactory());
17328 schemes.put(TupleScheme.class, new listFiles_resultTupleSchemeFactory());
17329 }
17330
17331 public List<Entry> success;
17332 public CentralDogmaException e;
17333
17334
17335 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17336 SUCCESS((short)0, "success"),
17337 E((short)1, "e");
17338
17339 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17340
17341 static {
17342 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17343 byName.put(field.getFieldName(), field);
17344 }
17345 }
17346
17347
17348
17349
17350 public static _Fields findByThriftId(int fieldId) {
17351 switch(fieldId) {
17352 case 0:
17353 return SUCCESS;
17354 case 1:
17355 return E;
17356 default:
17357 return null;
17358 }
17359 }
17360
17361
17362
17363
17364
17365 public static _Fields findByThriftIdOrThrow(int fieldId) {
17366 _Fields fields = findByThriftId(fieldId);
17367 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17368 return fields;
17369 }
17370
17371
17372
17373
17374 public static _Fields findByName(String name) {
17375 return byName.get(name);
17376 }
17377
17378 private final short _thriftId;
17379 private final String _fieldName;
17380
17381 _Fields(short thriftId, String fieldName) {
17382 _thriftId = thriftId;
17383 _fieldName = fieldName;
17384 }
17385
17386 public short getThriftFieldId() {
17387 return _thriftId;
17388 }
17389
17390 public String getFieldName() {
17391 return _fieldName;
17392 }
17393 }
17394
17395
17396 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17397 static {
17398 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17399 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17400 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
17401 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class))));
17402 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
17403 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17404 metaDataMap = Collections.unmodifiableMap(tmpMap);
17405 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listFiles_result.class, metaDataMap);
17406 }
17407
17408 public listFiles_result() {
17409 }
17410
17411 public listFiles_result(
17412 List<Entry> success,
17413 CentralDogmaException e)
17414 {
17415 this();
17416 this.success = success;
17417 this.e = e;
17418 }
17419
17420
17421
17422
17423 public listFiles_result(listFiles_result other) {
17424 if (other.isSetSuccess()) {
17425 List<Entry> __this__success = new ArrayList<Entry>(other.success.size());
17426 for (Entry other_element : other.success) {
17427 __this__success.add(new Entry(other_element));
17428 }
17429 this.success = __this__success;
17430 }
17431 if (other.isSetE()) {
17432 this.e = new CentralDogmaException(other.e);
17433 }
17434 }
17435
17436 public listFiles_result deepCopy() {
17437 return new listFiles_result(this);
17438 }
17439
17440 @Override
17441 public void clear() {
17442 this.success = null;
17443 this.e = null;
17444 }
17445
17446 public int getSuccessSize() {
17447 return (this.success == null) ? 0 : this.success.size();
17448 }
17449
17450 public java.util.Iterator<Entry> getSuccessIterator() {
17451 return (this.success == null) ? null : this.success.iterator();
17452 }
17453
17454 public void addToSuccess(Entry elem) {
17455 if (this.success == null) {
17456 this.success = new ArrayList<Entry>();
17457 }
17458 this.success.add(elem);
17459 }
17460
17461 public List<Entry> getSuccess() {
17462 return this.success;
17463 }
17464
17465 public listFiles_result setSuccess(List<Entry> success) {
17466 this.success = success;
17467 return this;
17468 }
17469
17470 public void unsetSuccess() {
17471 this.success = null;
17472 }
17473
17474
17475 public boolean isSetSuccess() {
17476 return this.success != null;
17477 }
17478
17479 public void setSuccessIsSet(boolean value) {
17480 if (!value) {
17481 this.success = null;
17482 }
17483 }
17484
17485 public CentralDogmaException getE() {
17486 return this.e;
17487 }
17488
17489 public listFiles_result setE(CentralDogmaException e) {
17490 this.e = e;
17491 return this;
17492 }
17493
17494 public void unsetE() {
17495 this.e = null;
17496 }
17497
17498
17499 public boolean isSetE() {
17500 return this.e != null;
17501 }
17502
17503 public void setEIsSet(boolean value) {
17504 if (!value) {
17505 this.e = null;
17506 }
17507 }
17508
17509 public void setFieldValue(_Fields field, Object value) {
17510 switch (field) {
17511 case SUCCESS:
17512 if (value == null) {
17513 unsetSuccess();
17514 } else {
17515 setSuccess((List<Entry>)value);
17516 }
17517 break;
17518
17519 case E:
17520 if (value == null) {
17521 unsetE();
17522 } else {
17523 setE((CentralDogmaException)value);
17524 }
17525 break;
17526
17527 }
17528 }
17529
17530 public Object getFieldValue(_Fields field) {
17531 switch (field) {
17532 case SUCCESS:
17533 return getSuccess();
17534
17535 case E:
17536 return getE();
17537
17538 }
17539 throw new IllegalStateException();
17540 }
17541
17542
17543 public boolean isSet(_Fields field) {
17544 if (field == null) {
17545 throw new IllegalArgumentException();
17546 }
17547
17548 switch (field) {
17549 case SUCCESS:
17550 return isSetSuccess();
17551 case E:
17552 return isSetE();
17553 }
17554 throw new IllegalStateException();
17555 }
17556
17557 @Override
17558 public boolean equals(Object that) {
17559 if (that == null)
17560 return false;
17561 if (that instanceof listFiles_result)
17562 return this.equals((listFiles_result)that);
17563 return false;
17564 }
17565
17566 public boolean equals(listFiles_result that) {
17567 if (that == null)
17568 return false;
17569
17570 boolean this_present_success = true && this.isSetSuccess();
17571 boolean that_present_success = true && that.isSetSuccess();
17572 if (this_present_success || that_present_success) {
17573 if (!(this_present_success && that_present_success))
17574 return false;
17575 if (!this.success.equals(that.success))
17576 return false;
17577 }
17578
17579 boolean this_present_e = true && this.isSetE();
17580 boolean that_present_e = true && that.isSetE();
17581 if (this_present_e || that_present_e) {
17582 if (!(this_present_e && that_present_e))
17583 return false;
17584 if (!this.e.equals(that.e))
17585 return false;
17586 }
17587
17588 return true;
17589 }
17590
17591 @Override
17592 public int hashCode() {
17593 List<Object> list = new ArrayList<Object>();
17594
17595 boolean present_success = true && (isSetSuccess());
17596 list.add(present_success);
17597 if (present_success)
17598 list.add(success);
17599
17600 boolean present_e = true && (isSetE());
17601 list.add(present_e);
17602 if (present_e)
17603 list.add(e);
17604
17605 return list.hashCode();
17606 }
17607
17608 @Override
17609 public int compareTo(listFiles_result other) {
17610 if (!getClass().equals(other.getClass())) {
17611 return getClass().getName().compareTo(other.getClass().getName());
17612 }
17613
17614 int lastComparison = 0;
17615
17616 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17617 if (lastComparison != 0) {
17618 return lastComparison;
17619 }
17620 if (isSetSuccess()) {
17621 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17622 if (lastComparison != 0) {
17623 return lastComparison;
17624 }
17625 }
17626 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
17627 if (lastComparison != 0) {
17628 return lastComparison;
17629 }
17630 if (isSetE()) {
17631 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
17632 if (lastComparison != 0) {
17633 return lastComparison;
17634 }
17635 }
17636 return 0;
17637 }
17638
17639 public _Fields fieldForId(int fieldId) {
17640 return _Fields.findByThriftId(fieldId);
17641 }
17642
17643 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17644 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17645 }
17646
17647 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17648 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17649 }
17650
17651 @Override
17652 public String toString() {
17653 StringBuilder sb = new StringBuilder("listFiles_result(");
17654 boolean first = true;
17655
17656 sb.append("success:");
17657 if (this.success == null) {
17658 sb.append("null");
17659 } else {
17660 sb.append(this.success);
17661 }
17662 first = false;
17663 if (!first) sb.append(", ");
17664 sb.append("e:");
17665 if (this.e == null) {
17666 sb.append("null");
17667 } else {
17668 sb.append(this.e);
17669 }
17670 first = false;
17671 sb.append(")");
17672 return sb.toString();
17673 }
17674
17675 public void validate() throws org.apache.thrift.TException {
17676
17677
17678 }
17679
17680 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17681 try {
17682 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17683 } catch (org.apache.thrift.TException te) {
17684 throw new java.io.IOException(te);
17685 }
17686 }
17687
17688 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17689 try {
17690 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17691 } catch (org.apache.thrift.TException te) {
17692 throw new java.io.IOException(te);
17693 }
17694 }
17695
17696 private static class listFiles_resultStandardSchemeFactory implements SchemeFactory {
17697 public listFiles_resultStandardScheme getScheme() {
17698 return new listFiles_resultStandardScheme();
17699 }
17700 }
17701
17702 private static class listFiles_resultStandardScheme extends StandardScheme<listFiles_result> {
17703
17704 public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_result struct) throws org.apache.thrift.TException {
17705 org.apache.thrift.protocol.TField schemeField;
17706 iprot.readStructBegin();
17707 while (true)
17708 {
17709 schemeField = iprot.readFieldBegin();
17710 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17711 break;
17712 }
17713 switch (schemeField.id) {
17714 case 0:
17715 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
17716 {
17717 org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
17718 struct.success = new ArrayList<Entry>(_list104.size);
17719 Entry _elem105;
17720 for (int _i106 = 0; _i106 < _list104.size; ++_i106)
17721 {
17722 _elem105 = new Entry();
17723 _elem105.read(iprot);
17724 struct.success.add(_elem105);
17725 }
17726 iprot.readListEnd();
17727 }
17728 struct.setSuccessIsSet(true);
17729 } else {
17730 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17731 }
17732 break;
17733 case 1:
17734 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17735 struct.e = new CentralDogmaException();
17736 struct.e.read(iprot);
17737 struct.setEIsSet(true);
17738 } else {
17739 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17740 }
17741 break;
17742 default:
17743 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17744 }
17745 iprot.readFieldEnd();
17746 }
17747 iprot.readStructEnd();
17748
17749
17750 struct.validate();
17751 }
17752
17753 public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_result struct) throws org.apache.thrift.TException {
17754 struct.validate();
17755
17756 oprot.writeStructBegin(STRUCT_DESC);
17757 if (struct.success != null) {
17758 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17759 {
17760 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
17761 for (Entry _iter107 : struct.success)
17762 {
17763 _iter107.write(oprot);
17764 }
17765 oprot.writeListEnd();
17766 }
17767 oprot.writeFieldEnd();
17768 }
17769 if (struct.e != null) {
17770 oprot.writeFieldBegin(E_FIELD_DESC);
17771 struct.e.write(oprot);
17772 oprot.writeFieldEnd();
17773 }
17774 oprot.writeFieldStop();
17775 oprot.writeStructEnd();
17776 }
17777
17778 }
17779
17780 private static class listFiles_resultTupleSchemeFactory implements SchemeFactory {
17781 public listFiles_resultTupleScheme getScheme() {
17782 return new listFiles_resultTupleScheme();
17783 }
17784 }
17785
17786 private static class listFiles_resultTupleScheme extends TupleScheme<listFiles_result> {
17787
17788 @Override
17789 public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException {
17790 TTupleProtocol oprot = (TTupleProtocol) prot;
17791 BitSet optionals = new BitSet();
17792 if (struct.isSetSuccess()) {
17793 optionals.set(0);
17794 }
17795 if (struct.isSetE()) {
17796 optionals.set(1);
17797 }
17798 oprot.writeBitSet(optionals, 2);
17799 if (struct.isSetSuccess()) {
17800 {
17801 oprot.writeI32(struct.success.size());
17802 for (Entry _iter108 : struct.success)
17803 {
17804 _iter108.write(oprot);
17805 }
17806 }
17807 }
17808 if (struct.isSetE()) {
17809 struct.e.write(oprot);
17810 }
17811 }
17812
17813 @Override
17814 public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException {
17815 TTupleProtocol iprot = (TTupleProtocol) prot;
17816 BitSet incoming = iprot.readBitSet(2);
17817 if (incoming.get(0)) {
17818 {
17819 org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
17820 struct.success = new ArrayList<Entry>(_list109.size);
17821 Entry _elem110;
17822 for (int _i111 = 0; _i111 < _list109.size; ++_i111)
17823 {
17824 _elem110 = new Entry();
17825 _elem110.read(iprot);
17826 struct.success.add(_elem110);
17827 }
17828 }
17829 struct.setSuccessIsSet(true);
17830 }
17831 if (incoming.get(1)) {
17832 struct.e = new CentralDogmaException();
17833 struct.e.read(iprot);
17834 struct.setEIsSet(true);
17835 }
17836 }
17837 }
17838
17839 }
17840
17841 public static class getFiles_args implements org.apache.thrift.TBase<getFiles_args, getFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFiles_args> {
17842 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_args");
17843
17844 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
17845 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
17846 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
17847 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
17848
17849 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17850 static {
17851 schemes.put(StandardScheme.class, new getFiles_argsStandardSchemeFactory());
17852 schemes.put(TupleScheme.class, new getFiles_argsTupleSchemeFactory());
17853 }
17854
17855 public String projectName;
17856 public String repositoryName;
17857 public Revision revision;
17858 public String pathPattern;
17859
17860
17861 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17862 PROJECT_NAME((short)1, "projectName"),
17863 REPOSITORY_NAME((short)2, "repositoryName"),
17864 REVISION((short)3, "revision"),
17865 PATH_PATTERN((short)4, "pathPattern");
17866
17867 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17868
17869 static {
17870 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17871 byName.put(field.getFieldName(), field);
17872 }
17873 }
17874
17875
17876
17877
17878 public static _Fields findByThriftId(int fieldId) {
17879 switch(fieldId) {
17880 case 1:
17881 return PROJECT_NAME;
17882 case 2:
17883 return REPOSITORY_NAME;
17884 case 3:
17885 return REVISION;
17886 case 4:
17887 return PATH_PATTERN;
17888 default:
17889 return null;
17890 }
17891 }
17892
17893
17894
17895
17896
17897 public static _Fields findByThriftIdOrThrow(int fieldId) {
17898 _Fields fields = findByThriftId(fieldId);
17899 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17900 return fields;
17901 }
17902
17903
17904
17905
17906 public static _Fields findByName(String name) {
17907 return byName.get(name);
17908 }
17909
17910 private final short _thriftId;
17911 private final String _fieldName;
17912
17913 _Fields(short thriftId, String fieldName) {
17914 _thriftId = thriftId;
17915 _fieldName = fieldName;
17916 }
17917
17918 public short getThriftFieldId() {
17919 return _thriftId;
17920 }
17921
17922 public String getFieldName() {
17923 return _fieldName;
17924 }
17925 }
17926
17927
17928 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17929 static {
17930 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17931 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17932 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17933 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17934 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17935 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
17936 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
17937 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
17938 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17939 metaDataMap = Collections.unmodifiableMap(tmpMap);
17940 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFiles_args.class, metaDataMap);
17941 }
17942
17943 public getFiles_args() {
17944 }
17945
17946 public getFiles_args(
17947 String projectName,
17948 String repositoryName,
17949 Revision revision,
17950 String pathPattern)
17951 {
17952 this();
17953 this.projectName = projectName;
17954 this.repositoryName = repositoryName;
17955 this.revision = revision;
17956 this.pathPattern = pathPattern;
17957 }
17958
17959
17960
17961
17962 public getFiles_args(getFiles_args other) {
17963 if (other.isSetProjectName()) {
17964 this.projectName = other.projectName;
17965 }
17966 if (other.isSetRepositoryName()) {
17967 this.repositoryName = other.repositoryName;
17968 }
17969 if (other.isSetRevision()) {
17970 this.revision = new Revision(other.revision);
17971 }
17972 if (other.isSetPathPattern()) {
17973 this.pathPattern = other.pathPattern;
17974 }
17975 }
17976
17977 public getFiles_args deepCopy() {
17978 return new getFiles_args(this);
17979 }
17980
17981 @Override
17982 public void clear() {
17983 this.projectName = null;
17984 this.repositoryName = null;
17985 this.revision = null;
17986 this.pathPattern = null;
17987 }
17988
17989 public String getProjectName() {
17990 return this.projectName;
17991 }
17992
17993 public getFiles_args setProjectName(String projectName) {
17994 this.projectName = projectName;
17995 return this;
17996 }
17997
17998 public void unsetProjectName() {
17999 this.projectName = null;
18000 }
18001
18002
18003 public boolean isSetProjectName() {
18004 return this.projectName != null;
18005 }
18006
18007 public void setProjectNameIsSet(boolean value) {
18008 if (!value) {
18009 this.projectName = null;
18010 }
18011 }
18012
18013 public String getRepositoryName() {
18014 return this.repositoryName;
18015 }
18016
18017 public getFiles_args setRepositoryName(String repositoryName) {
18018 this.repositoryName = repositoryName;
18019 return this;
18020 }
18021
18022 public void unsetRepositoryName() {
18023 this.repositoryName = null;
18024 }
18025
18026
18027 public boolean isSetRepositoryName() {
18028 return this.repositoryName != null;
18029 }
18030
18031 public void setRepositoryNameIsSet(boolean value) {
18032 if (!value) {
18033 this.repositoryName = null;
18034 }
18035 }
18036
18037 public Revision getRevision() {
18038 return this.revision;
18039 }
18040
18041 public getFiles_args setRevision(Revision revision) {
18042 this.revision = revision;
18043 return this;
18044 }
18045
18046 public void unsetRevision() {
18047 this.revision = null;
18048 }
18049
18050
18051 public boolean isSetRevision() {
18052 return this.revision != null;
18053 }
18054
18055 public void setRevisionIsSet(boolean value) {
18056 if (!value) {
18057 this.revision = null;
18058 }
18059 }
18060
18061 public String getPathPattern() {
18062 return this.pathPattern;
18063 }
18064
18065 public getFiles_args setPathPattern(String pathPattern) {
18066 this.pathPattern = pathPattern;
18067 return this;
18068 }
18069
18070 public void unsetPathPattern() {
18071 this.pathPattern = null;
18072 }
18073
18074
18075 public boolean isSetPathPattern() {
18076 return this.pathPattern != null;
18077 }
18078
18079 public void setPathPatternIsSet(boolean value) {
18080 if (!value) {
18081 this.pathPattern = null;
18082 }
18083 }
18084
18085 public void setFieldValue(_Fields field, Object value) {
18086 switch (field) {
18087 case PROJECT_NAME:
18088 if (value == null) {
18089 unsetProjectName();
18090 } else {
18091 setProjectName((String)value);
18092 }
18093 break;
18094
18095 case REPOSITORY_NAME:
18096 if (value == null) {
18097 unsetRepositoryName();
18098 } else {
18099 setRepositoryName((String)value);
18100 }
18101 break;
18102
18103 case REVISION:
18104 if (value == null) {
18105 unsetRevision();
18106 } else {
18107 setRevision((Revision)value);
18108 }
18109 break;
18110
18111 case PATH_PATTERN:
18112 if (value == null) {
18113 unsetPathPattern();
18114 } else {
18115 setPathPattern((String)value);
18116 }
18117 break;
18118
18119 }
18120 }
18121
18122 public Object getFieldValue(_Fields field) {
18123 switch (field) {
18124 case PROJECT_NAME:
18125 return getProjectName();
18126
18127 case REPOSITORY_NAME:
18128 return getRepositoryName();
18129
18130 case REVISION:
18131 return getRevision();
18132
18133 case PATH_PATTERN:
18134 return getPathPattern();
18135
18136 }
18137 throw new IllegalStateException();
18138 }
18139
18140
18141 public boolean isSet(_Fields field) {
18142 if (field == null) {
18143 throw new IllegalArgumentException();
18144 }
18145
18146 switch (field) {
18147 case PROJECT_NAME:
18148 return isSetProjectName();
18149 case REPOSITORY_NAME:
18150 return isSetRepositoryName();
18151 case REVISION:
18152 return isSetRevision();
18153 case PATH_PATTERN:
18154 return isSetPathPattern();
18155 }
18156 throw new IllegalStateException();
18157 }
18158
18159 @Override
18160 public boolean equals(Object that) {
18161 if (that == null)
18162 return false;
18163 if (that instanceof getFiles_args)
18164 return this.equals((getFiles_args)that);
18165 return false;
18166 }
18167
18168 public boolean equals(getFiles_args that) {
18169 if (that == null)
18170 return false;
18171
18172 boolean this_present_projectName = true && this.isSetProjectName();
18173 boolean that_present_projectName = true && that.isSetProjectName();
18174 if (this_present_projectName || that_present_projectName) {
18175 if (!(this_present_projectName && that_present_projectName))
18176 return false;
18177 if (!this.projectName.equals(that.projectName))
18178 return false;
18179 }
18180
18181 boolean this_present_repositoryName = true && this.isSetRepositoryName();
18182 boolean that_present_repositoryName = true && that.isSetRepositoryName();
18183 if (this_present_repositoryName || that_present_repositoryName) {
18184 if (!(this_present_repositoryName && that_present_repositoryName))
18185 return false;
18186 if (!this.repositoryName.equals(that.repositoryName))
18187 return false;
18188 }
18189
18190 boolean this_present_revision = true && this.isSetRevision();
18191 boolean that_present_revision = true && that.isSetRevision();
18192 if (this_present_revision || that_present_revision) {
18193 if (!(this_present_revision && that_present_revision))
18194 return false;
18195 if (!this.revision.equals(that.revision))
18196 return false;
18197 }
18198
18199 boolean this_present_pathPattern = true && this.isSetPathPattern();
18200 boolean that_present_pathPattern = true && that.isSetPathPattern();
18201 if (this_present_pathPattern || that_present_pathPattern) {
18202 if (!(this_present_pathPattern && that_present_pathPattern))
18203 return false;
18204 if (!this.pathPattern.equals(that.pathPattern))
18205 return false;
18206 }
18207
18208 return true;
18209 }
18210
18211 @Override
18212 public int hashCode() {
18213 List<Object> list = new ArrayList<Object>();
18214
18215 boolean present_projectName = true && (isSetProjectName());
18216 list.add(present_projectName);
18217 if (present_projectName)
18218 list.add(projectName);
18219
18220 boolean present_repositoryName = true && (isSetRepositoryName());
18221 list.add(present_repositoryName);
18222 if (present_repositoryName)
18223 list.add(repositoryName);
18224
18225 boolean present_revision = true && (isSetRevision());
18226 list.add(present_revision);
18227 if (present_revision)
18228 list.add(revision);
18229
18230 boolean present_pathPattern = true && (isSetPathPattern());
18231 list.add(present_pathPattern);
18232 if (present_pathPattern)
18233 list.add(pathPattern);
18234
18235 return list.hashCode();
18236 }
18237
18238 @Override
18239 public int compareTo(getFiles_args other) {
18240 if (!getClass().equals(other.getClass())) {
18241 return getClass().getName().compareTo(other.getClass().getName());
18242 }
18243
18244 int lastComparison = 0;
18245
18246 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
18247 if (lastComparison != 0) {
18248 return lastComparison;
18249 }
18250 if (isSetProjectName()) {
18251 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
18252 if (lastComparison != 0) {
18253 return lastComparison;
18254 }
18255 }
18256 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
18257 if (lastComparison != 0) {
18258 return lastComparison;
18259 }
18260 if (isSetRepositoryName()) {
18261 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
18262 if (lastComparison != 0) {
18263 return lastComparison;
18264 }
18265 }
18266 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
18267 if (lastComparison != 0) {
18268 return lastComparison;
18269 }
18270 if (isSetRevision()) {
18271 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
18272 if (lastComparison != 0) {
18273 return lastComparison;
18274 }
18275 }
18276 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
18277 if (lastComparison != 0) {
18278 return lastComparison;
18279 }
18280 if (isSetPathPattern()) {
18281 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
18282 if (lastComparison != 0) {
18283 return lastComparison;
18284 }
18285 }
18286 return 0;
18287 }
18288
18289 public _Fields fieldForId(int fieldId) {
18290 return _Fields.findByThriftId(fieldId);
18291 }
18292
18293 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18294 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18295 }
18296
18297 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18298 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18299 }
18300
18301 @Override
18302 public String toString() {
18303 StringBuilder sb = new StringBuilder("getFiles_args(");
18304 boolean first = true;
18305
18306 sb.append("projectName:");
18307 if (this.projectName == null) {
18308 sb.append("null");
18309 } else {
18310 sb.append(this.projectName);
18311 }
18312 first = false;
18313 if (!first) sb.append(", ");
18314 sb.append("repositoryName:");
18315 if (this.repositoryName == null) {
18316 sb.append("null");
18317 } else {
18318 sb.append(this.repositoryName);
18319 }
18320 first = false;
18321 if (!first) sb.append(", ");
18322 sb.append("revision:");
18323 if (this.revision == null) {
18324 sb.append("null");
18325 } else {
18326 sb.append(this.revision);
18327 }
18328 first = false;
18329 if (!first) sb.append(", ");
18330 sb.append("pathPattern:");
18331 if (this.pathPattern == null) {
18332 sb.append("null");
18333 } else {
18334 sb.append(this.pathPattern);
18335 }
18336 first = false;
18337 sb.append(")");
18338 return sb.toString();
18339 }
18340
18341 public void validate() throws org.apache.thrift.TException {
18342
18343
18344 if (revision != null) {
18345 revision.validate();
18346 }
18347 }
18348
18349 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18350 try {
18351 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18352 } catch (org.apache.thrift.TException te) {
18353 throw new java.io.IOException(te);
18354 }
18355 }
18356
18357 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18358 try {
18359 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18360 } catch (org.apache.thrift.TException te) {
18361 throw new java.io.IOException(te);
18362 }
18363 }
18364
18365 private static class getFiles_argsStandardSchemeFactory implements SchemeFactory {
18366 public getFiles_argsStandardScheme getScheme() {
18367 return new getFiles_argsStandardScheme();
18368 }
18369 }
18370
18371 private static class getFiles_argsStandardScheme extends StandardScheme<getFiles_args> {
18372
18373 public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_args struct) throws org.apache.thrift.TException {
18374 org.apache.thrift.protocol.TField schemeField;
18375 iprot.readStructBegin();
18376 while (true)
18377 {
18378 schemeField = iprot.readFieldBegin();
18379 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18380 break;
18381 }
18382 switch (schemeField.id) {
18383 case 1:
18384 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18385 struct.projectName = iprot.readString();
18386 struct.setProjectNameIsSet(true);
18387 } else {
18388 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18389 }
18390 break;
18391 case 2:
18392 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18393 struct.repositoryName = iprot.readString();
18394 struct.setRepositoryNameIsSet(true);
18395 } else {
18396 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18397 }
18398 break;
18399 case 3:
18400 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18401 struct.revision = new Revision();
18402 struct.revision.read(iprot);
18403 struct.setRevisionIsSet(true);
18404 } else {
18405 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18406 }
18407 break;
18408 case 4:
18409 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18410 struct.pathPattern = iprot.readString();
18411 struct.setPathPatternIsSet(true);
18412 } else {
18413 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18414 }
18415 break;
18416 default:
18417 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18418 }
18419 iprot.readFieldEnd();
18420 }
18421 iprot.readStructEnd();
18422
18423
18424 struct.validate();
18425 }
18426
18427 public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_args struct) throws org.apache.thrift.TException {
18428 struct.validate();
18429
18430 oprot.writeStructBegin(STRUCT_DESC);
18431 if (struct.projectName != null) {
18432 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
18433 oprot.writeString(struct.projectName);
18434 oprot.writeFieldEnd();
18435 }
18436 if (struct.repositoryName != null) {
18437 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
18438 oprot.writeString(struct.repositoryName);
18439 oprot.writeFieldEnd();
18440 }
18441 if (struct.revision != null) {
18442 oprot.writeFieldBegin(REVISION_FIELD_DESC);
18443 struct.revision.write(oprot);
18444 oprot.writeFieldEnd();
18445 }
18446 if (struct.pathPattern != null) {
18447 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
18448 oprot.writeString(struct.pathPattern);
18449 oprot.writeFieldEnd();
18450 }
18451 oprot.writeFieldStop();
18452 oprot.writeStructEnd();
18453 }
18454
18455 }
18456
18457 private static class getFiles_argsTupleSchemeFactory implements SchemeFactory {
18458 public getFiles_argsTupleScheme getScheme() {
18459 return new getFiles_argsTupleScheme();
18460 }
18461 }
18462
18463 private static class getFiles_argsTupleScheme extends TupleScheme<getFiles_args> {
18464
18465 @Override
18466 public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException {
18467 TTupleProtocol oprot = (TTupleProtocol) prot;
18468 BitSet optionals = new BitSet();
18469 if (struct.isSetProjectName()) {
18470 optionals.set(0);
18471 }
18472 if (struct.isSetRepositoryName()) {
18473 optionals.set(1);
18474 }
18475 if (struct.isSetRevision()) {
18476 optionals.set(2);
18477 }
18478 if (struct.isSetPathPattern()) {
18479 optionals.set(3);
18480 }
18481 oprot.writeBitSet(optionals, 4);
18482 if (struct.isSetProjectName()) {
18483 oprot.writeString(struct.projectName);
18484 }
18485 if (struct.isSetRepositoryName()) {
18486 oprot.writeString(struct.repositoryName);
18487 }
18488 if (struct.isSetRevision()) {
18489 struct.revision.write(oprot);
18490 }
18491 if (struct.isSetPathPattern()) {
18492 oprot.writeString(struct.pathPattern);
18493 }
18494 }
18495
18496 @Override
18497 public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException {
18498 TTupleProtocol iprot = (TTupleProtocol) prot;
18499 BitSet incoming = iprot.readBitSet(4);
18500 if (incoming.get(0)) {
18501 struct.projectName = iprot.readString();
18502 struct.setProjectNameIsSet(true);
18503 }
18504 if (incoming.get(1)) {
18505 struct.repositoryName = iprot.readString();
18506 struct.setRepositoryNameIsSet(true);
18507 }
18508 if (incoming.get(2)) {
18509 struct.revision = new Revision();
18510 struct.revision.read(iprot);
18511 struct.setRevisionIsSet(true);
18512 }
18513 if (incoming.get(3)) {
18514 struct.pathPattern = iprot.readString();
18515 struct.setPathPatternIsSet(true);
18516 }
18517 }
18518 }
18519
18520 }
18521
18522 public static class getFiles_result implements org.apache.thrift.TBase<getFiles_result, getFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFiles_result> {
18523 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_result");
18524
18525 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
18526 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
18527
18528 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18529 static {
18530 schemes.put(StandardScheme.class, new getFiles_resultStandardSchemeFactory());
18531 schemes.put(TupleScheme.class, new getFiles_resultTupleSchemeFactory());
18532 }
18533
18534 public List<Entry> success;
18535 public CentralDogmaException e;
18536
18537
18538 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18539 SUCCESS((short)0, "success"),
18540 E((short)1, "e");
18541
18542 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18543
18544 static {
18545 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18546 byName.put(field.getFieldName(), field);
18547 }
18548 }
18549
18550
18551
18552
18553 public static _Fields findByThriftId(int fieldId) {
18554 switch(fieldId) {
18555 case 0:
18556 return SUCCESS;
18557 case 1:
18558 return E;
18559 default:
18560 return null;
18561 }
18562 }
18563
18564
18565
18566
18567
18568 public static _Fields findByThriftIdOrThrow(int fieldId) {
18569 _Fields fields = findByThriftId(fieldId);
18570 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18571 return fields;
18572 }
18573
18574
18575
18576
18577 public static _Fields findByName(String name) {
18578 return byName.get(name);
18579 }
18580
18581 private final short _thriftId;
18582 private final String _fieldName;
18583
18584 _Fields(short thriftId, String fieldName) {
18585 _thriftId = thriftId;
18586 _fieldName = fieldName;
18587 }
18588
18589 public short getThriftFieldId() {
18590 return _thriftId;
18591 }
18592
18593 public String getFieldName() {
18594 return _fieldName;
18595 }
18596 }
18597
18598
18599 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18600 static {
18601 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18602 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18603 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
18604 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class))));
18605 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
18606 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18607 metaDataMap = Collections.unmodifiableMap(tmpMap);
18608 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFiles_result.class, metaDataMap);
18609 }
18610
18611 public getFiles_result() {
18612 }
18613
18614 public getFiles_result(
18615 List<Entry> success,
18616 CentralDogmaException e)
18617 {
18618 this();
18619 this.success = success;
18620 this.e = e;
18621 }
18622
18623
18624
18625
18626 public getFiles_result(getFiles_result other) {
18627 if (other.isSetSuccess()) {
18628 List<Entry> __this__success = new ArrayList<Entry>(other.success.size());
18629 for (Entry other_element : other.success) {
18630 __this__success.add(new Entry(other_element));
18631 }
18632 this.success = __this__success;
18633 }
18634 if (other.isSetE()) {
18635 this.e = new CentralDogmaException(other.e);
18636 }
18637 }
18638
18639 public getFiles_result deepCopy() {
18640 return new getFiles_result(this);
18641 }
18642
18643 @Override
18644 public void clear() {
18645 this.success = null;
18646 this.e = null;
18647 }
18648
18649 public int getSuccessSize() {
18650 return (this.success == null) ? 0 : this.success.size();
18651 }
18652
18653 public java.util.Iterator<Entry> getSuccessIterator() {
18654 return (this.success == null) ? null : this.success.iterator();
18655 }
18656
18657 public void addToSuccess(Entry elem) {
18658 if (this.success == null) {
18659 this.success = new ArrayList<Entry>();
18660 }
18661 this.success.add(elem);
18662 }
18663
18664 public List<Entry> getSuccess() {
18665 return this.success;
18666 }
18667
18668 public getFiles_result setSuccess(List<Entry> success) {
18669 this.success = success;
18670 return this;
18671 }
18672
18673 public void unsetSuccess() {
18674 this.success = null;
18675 }
18676
18677
18678 public boolean isSetSuccess() {
18679 return this.success != null;
18680 }
18681
18682 public void setSuccessIsSet(boolean value) {
18683 if (!value) {
18684 this.success = null;
18685 }
18686 }
18687
18688 public CentralDogmaException getE() {
18689 return this.e;
18690 }
18691
18692 public getFiles_result setE(CentralDogmaException e) {
18693 this.e = e;
18694 return this;
18695 }
18696
18697 public void unsetE() {
18698 this.e = null;
18699 }
18700
18701
18702 public boolean isSetE() {
18703 return this.e != null;
18704 }
18705
18706 public void setEIsSet(boolean value) {
18707 if (!value) {
18708 this.e = null;
18709 }
18710 }
18711
18712 public void setFieldValue(_Fields field, Object value) {
18713 switch (field) {
18714 case SUCCESS:
18715 if (value == null) {
18716 unsetSuccess();
18717 } else {
18718 setSuccess((List<Entry>)value);
18719 }
18720 break;
18721
18722 case E:
18723 if (value == null) {
18724 unsetE();
18725 } else {
18726 setE((CentralDogmaException)value);
18727 }
18728 break;
18729
18730 }
18731 }
18732
18733 public Object getFieldValue(_Fields field) {
18734 switch (field) {
18735 case SUCCESS:
18736 return getSuccess();
18737
18738 case E:
18739 return getE();
18740
18741 }
18742 throw new IllegalStateException();
18743 }
18744
18745
18746 public boolean isSet(_Fields field) {
18747 if (field == null) {
18748 throw new IllegalArgumentException();
18749 }
18750
18751 switch (field) {
18752 case SUCCESS:
18753 return isSetSuccess();
18754 case E:
18755 return isSetE();
18756 }
18757 throw new IllegalStateException();
18758 }
18759
18760 @Override
18761 public boolean equals(Object that) {
18762 if (that == null)
18763 return false;
18764 if (that instanceof getFiles_result)
18765 return this.equals((getFiles_result)that);
18766 return false;
18767 }
18768
18769 public boolean equals(getFiles_result that) {
18770 if (that == null)
18771 return false;
18772
18773 boolean this_present_success = true && this.isSetSuccess();
18774 boolean that_present_success = true && that.isSetSuccess();
18775 if (this_present_success || that_present_success) {
18776 if (!(this_present_success && that_present_success))
18777 return false;
18778 if (!this.success.equals(that.success))
18779 return false;
18780 }
18781
18782 boolean this_present_e = true && this.isSetE();
18783 boolean that_present_e = true && that.isSetE();
18784 if (this_present_e || that_present_e) {
18785 if (!(this_present_e && that_present_e))
18786 return false;
18787 if (!this.e.equals(that.e))
18788 return false;
18789 }
18790
18791 return true;
18792 }
18793
18794 @Override
18795 public int hashCode() {
18796 List<Object> list = new ArrayList<Object>();
18797
18798 boolean present_success = true && (isSetSuccess());
18799 list.add(present_success);
18800 if (present_success)
18801 list.add(success);
18802
18803 boolean present_e = true && (isSetE());
18804 list.add(present_e);
18805 if (present_e)
18806 list.add(e);
18807
18808 return list.hashCode();
18809 }
18810
18811 @Override
18812 public int compareTo(getFiles_result other) {
18813 if (!getClass().equals(other.getClass())) {
18814 return getClass().getName().compareTo(other.getClass().getName());
18815 }
18816
18817 int lastComparison = 0;
18818
18819 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18820 if (lastComparison != 0) {
18821 return lastComparison;
18822 }
18823 if (isSetSuccess()) {
18824 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18825 if (lastComparison != 0) {
18826 return lastComparison;
18827 }
18828 }
18829 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
18830 if (lastComparison != 0) {
18831 return lastComparison;
18832 }
18833 if (isSetE()) {
18834 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
18835 if (lastComparison != 0) {
18836 return lastComparison;
18837 }
18838 }
18839 return 0;
18840 }
18841
18842 public _Fields fieldForId(int fieldId) {
18843 return _Fields.findByThriftId(fieldId);
18844 }
18845
18846 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18847 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18848 }
18849
18850 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18851 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18852 }
18853
18854 @Override
18855 public String toString() {
18856 StringBuilder sb = new StringBuilder("getFiles_result(");
18857 boolean first = true;
18858
18859 sb.append("success:");
18860 if (this.success == null) {
18861 sb.append("null");
18862 } else {
18863 sb.append(this.success);
18864 }
18865 first = false;
18866 if (!first) sb.append(", ");
18867 sb.append("e:");
18868 if (this.e == null) {
18869 sb.append("null");
18870 } else {
18871 sb.append(this.e);
18872 }
18873 first = false;
18874 sb.append(")");
18875 return sb.toString();
18876 }
18877
18878 public void validate() throws org.apache.thrift.TException {
18879
18880
18881 }
18882
18883 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18884 try {
18885 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18886 } catch (org.apache.thrift.TException te) {
18887 throw new java.io.IOException(te);
18888 }
18889 }
18890
18891 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18892 try {
18893 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18894 } catch (org.apache.thrift.TException te) {
18895 throw new java.io.IOException(te);
18896 }
18897 }
18898
18899 private static class getFiles_resultStandardSchemeFactory implements SchemeFactory {
18900 public getFiles_resultStandardScheme getScheme() {
18901 return new getFiles_resultStandardScheme();
18902 }
18903 }
18904
18905 private static class getFiles_resultStandardScheme extends StandardScheme<getFiles_result> {
18906
18907 public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_result struct) throws org.apache.thrift.TException {
18908 org.apache.thrift.protocol.TField schemeField;
18909 iprot.readStructBegin();
18910 while (true)
18911 {
18912 schemeField = iprot.readFieldBegin();
18913 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18914 break;
18915 }
18916 switch (schemeField.id) {
18917 case 0:
18918 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
18919 {
18920 org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
18921 struct.success = new ArrayList<Entry>(_list112.size);
18922 Entry _elem113;
18923 for (int _i114 = 0; _i114 < _list112.size; ++_i114)
18924 {
18925 _elem113 = new Entry();
18926 _elem113.read(iprot);
18927 struct.success.add(_elem113);
18928 }
18929 iprot.readListEnd();
18930 }
18931 struct.setSuccessIsSet(true);
18932 } else {
18933 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18934 }
18935 break;
18936 case 1:
18937 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18938 struct.e = new CentralDogmaException();
18939 struct.e.read(iprot);
18940 struct.setEIsSet(true);
18941 } else {
18942 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18943 }
18944 break;
18945 default:
18946 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18947 }
18948 iprot.readFieldEnd();
18949 }
18950 iprot.readStructEnd();
18951
18952
18953 struct.validate();
18954 }
18955
18956 public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_result struct) throws org.apache.thrift.TException {
18957 struct.validate();
18958
18959 oprot.writeStructBegin(STRUCT_DESC);
18960 if (struct.success != null) {
18961 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18962 {
18963 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
18964 for (Entry _iter115 : struct.success)
18965 {
18966 _iter115.write(oprot);
18967 }
18968 oprot.writeListEnd();
18969 }
18970 oprot.writeFieldEnd();
18971 }
18972 if (struct.e != null) {
18973 oprot.writeFieldBegin(E_FIELD_DESC);
18974 struct.e.write(oprot);
18975 oprot.writeFieldEnd();
18976 }
18977 oprot.writeFieldStop();
18978 oprot.writeStructEnd();
18979 }
18980
18981 }
18982
18983 private static class getFiles_resultTupleSchemeFactory implements SchemeFactory {
18984 public getFiles_resultTupleScheme getScheme() {
18985 return new getFiles_resultTupleScheme();
18986 }
18987 }
18988
18989 private static class getFiles_resultTupleScheme extends TupleScheme<getFiles_result> {
18990
18991 @Override
18992 public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException {
18993 TTupleProtocol oprot = (TTupleProtocol) prot;
18994 BitSet optionals = new BitSet();
18995 if (struct.isSetSuccess()) {
18996 optionals.set(0);
18997 }
18998 if (struct.isSetE()) {
18999 optionals.set(1);
19000 }
19001 oprot.writeBitSet(optionals, 2);
19002 if (struct.isSetSuccess()) {
19003 {
19004 oprot.writeI32(struct.success.size());
19005 for (Entry _iter116 : struct.success)
19006 {
19007 _iter116.write(oprot);
19008 }
19009 }
19010 }
19011 if (struct.isSetE()) {
19012 struct.e.write(oprot);
19013 }
19014 }
19015
19016 @Override
19017 public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException {
19018 TTupleProtocol iprot = (TTupleProtocol) prot;
19019 BitSet incoming = iprot.readBitSet(2);
19020 if (incoming.get(0)) {
19021 {
19022 org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
19023 struct.success = new ArrayList<Entry>(_list117.size);
19024 Entry _elem118;
19025 for (int _i119 = 0; _i119 < _list117.size; ++_i119)
19026 {
19027 _elem118 = new Entry();
19028 _elem118.read(iprot);
19029 struct.success.add(_elem118);
19030 }
19031 }
19032 struct.setSuccessIsSet(true);
19033 }
19034 if (incoming.get(1)) {
19035 struct.e = new CentralDogmaException();
19036 struct.e.read(iprot);
19037 struct.setEIsSet(true);
19038 }
19039 }
19040 }
19041
19042 }
19043
19044 public static class getHistory_args implements org.apache.thrift.TBase<getHistory_args, getHistory_args._Fields>, java.io.Serializable, Cloneable, Comparable<getHistory_args> {
19045 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_args");
19046
19047 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
19048 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
19049 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
19050 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
19051 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5);
19052
19053 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19054 static {
19055 schemes.put(StandardScheme.class, new getHistory_argsStandardSchemeFactory());
19056 schemes.put(TupleScheme.class, new getHistory_argsTupleSchemeFactory());
19057 }
19058
19059 public String projectName;
19060 public String repositoryName;
19061 public Revision from;
19062 public Revision to;
19063 public String pathPattern;
19064
19065
19066 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19067 PROJECT_NAME((short)1, "projectName"),
19068 REPOSITORY_NAME((short)2, "repositoryName"),
19069 FROM_REVISION((short)3, "from"),
19070 TO_REVISION((short)4, "to"),
19071 PATH_PATTERN((short)5, "pathPattern");
19072
19073 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19074
19075 static {
19076 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19077 byName.put(field.getFieldName(), field);
19078 }
19079 }
19080
19081
19082
19083
19084 public static _Fields findByThriftId(int fieldId) {
19085 switch(fieldId) {
19086 case 1:
19087 return PROJECT_NAME;
19088 case 2:
19089 return REPOSITORY_NAME;
19090 case 3:
19091 return FROM_REVISION;
19092 case 4:
19093 return TO_REVISION;
19094 case 5:
19095 return PATH_PATTERN;
19096 default:
19097 return null;
19098 }
19099 }
19100
19101
19102
19103
19104
19105 public static _Fields findByThriftIdOrThrow(int fieldId) {
19106 _Fields fields = findByThriftId(fieldId);
19107 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19108 return fields;
19109 }
19110
19111
19112
19113
19114 public static _Fields findByName(String name) {
19115 return byName.get(name);
19116 }
19117
19118 private final short _thriftId;
19119 private final String _fieldName;
19120
19121 _Fields(short thriftId, String fieldName) {
19122 _thriftId = thriftId;
19123 _fieldName = fieldName;
19124 }
19125
19126 public short getThriftFieldId() {
19127 return _thriftId;
19128 }
19129
19130 public String getFieldName() {
19131 return _fieldName;
19132 }
19133 }
19134
19135
19136 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19137 static {
19138 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19139 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19140 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19141 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19142 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19143 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
19144 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
19145 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
19146 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
19147 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
19148 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19149 metaDataMap = Collections.unmodifiableMap(tmpMap);
19150 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistory_args.class, metaDataMap);
19151 }
19152
19153 public getHistory_args() {
19154 }
19155
19156 public getHistory_args(
19157 String projectName,
19158 String repositoryName,
19159 Revision from,
19160 Revision to,
19161 String pathPattern)
19162 {
19163 this();
19164 this.projectName = projectName;
19165 this.repositoryName = repositoryName;
19166 this.from = from;
19167 this.to = to;
19168 this.pathPattern = pathPattern;
19169 }
19170
19171
19172
19173
19174 public getHistory_args(getHistory_args other) {
19175 if (other.isSetProjectName()) {
19176 this.projectName = other.projectName;
19177 }
19178 if (other.isSetRepositoryName()) {
19179 this.repositoryName = other.repositoryName;
19180 }
19181 if (other.isSetFromRevision()) {
19182 this.from = new Revision(other.from);
19183 }
19184 if (other.isSetToRevision()) {
19185 this.to = new Revision(other.to);
19186 }
19187 if (other.isSetPathPattern()) {
19188 this.pathPattern = other.pathPattern;
19189 }
19190 }
19191
19192 public getHistory_args deepCopy() {
19193 return new getHistory_args(this);
19194 }
19195
19196 @Override
19197 public void clear() {
19198 this.projectName = null;
19199 this.repositoryName = null;
19200 this.from = null;
19201 this.to = null;
19202 this.pathPattern = null;
19203 }
19204
19205 public String getProjectName() {
19206 return this.projectName;
19207 }
19208
19209 public getHistory_args setProjectName(String projectName) {
19210 this.projectName = projectName;
19211 return this;
19212 }
19213
19214 public void unsetProjectName() {
19215 this.projectName = null;
19216 }
19217
19218
19219 public boolean isSetProjectName() {
19220 return this.projectName != null;
19221 }
19222
19223 public void setProjectNameIsSet(boolean value) {
19224 if (!value) {
19225 this.projectName = null;
19226 }
19227 }
19228
19229 public String getRepositoryName() {
19230 return this.repositoryName;
19231 }
19232
19233 public getHistory_args setRepositoryName(String repositoryName) {
19234 this.repositoryName = repositoryName;
19235 return this;
19236 }
19237
19238 public void unsetRepositoryName() {
19239 this.repositoryName = null;
19240 }
19241
19242
19243 public boolean isSetRepositoryName() {
19244 return this.repositoryName != null;
19245 }
19246
19247 public void setRepositoryNameIsSet(boolean value) {
19248 if (!value) {
19249 this.repositoryName = null;
19250 }
19251 }
19252
19253 public Revision getFromRevision() {
19254 return this.from;
19255 }
19256
19257 public getHistory_args setFromRevision(Revision from) {
19258 this.from = from;
19259 return this;
19260 }
19261
19262 public void unsetFromRevision() {
19263 this.from = null;
19264 }
19265
19266
19267 public boolean isSetFromRevision() {
19268 return this.from != null;
19269 }
19270
19271 public void setFromRevisionIsSet(boolean value) {
19272 if (!value) {
19273 this.from = null;
19274 }
19275 }
19276
19277 public Revision getToRevision() {
19278 return this.to;
19279 }
19280
19281 public getHistory_args setToRevision(Revision to) {
19282 this.to = to;
19283 return this;
19284 }
19285
19286 public void unsetToRevision() {
19287 this.to = null;
19288 }
19289
19290
19291 public boolean isSetToRevision() {
19292 return this.to != null;
19293 }
19294
19295 public void setToRevisionIsSet(boolean value) {
19296 if (!value) {
19297 this.to = null;
19298 }
19299 }
19300
19301 public String getPathPattern() {
19302 return this.pathPattern;
19303 }
19304
19305 public getHistory_args setPathPattern(String pathPattern) {
19306 this.pathPattern = pathPattern;
19307 return this;
19308 }
19309
19310 public void unsetPathPattern() {
19311 this.pathPattern = null;
19312 }
19313
19314
19315 public boolean isSetPathPattern() {
19316 return this.pathPattern != null;
19317 }
19318
19319 public void setPathPatternIsSet(boolean value) {
19320 if (!value) {
19321 this.pathPattern = null;
19322 }
19323 }
19324
19325 public void setFieldValue(_Fields field, Object value) {
19326 switch (field) {
19327 case PROJECT_NAME:
19328 if (value == null) {
19329 unsetProjectName();
19330 } else {
19331 setProjectName((String)value);
19332 }
19333 break;
19334
19335 case REPOSITORY_NAME:
19336 if (value == null) {
19337 unsetRepositoryName();
19338 } else {
19339 setRepositoryName((String)value);
19340 }
19341 break;
19342
19343 case FROM_REVISION:
19344 if (value == null) {
19345 unsetFromRevision();
19346 } else {
19347 setFromRevision((Revision)value);
19348 }
19349 break;
19350
19351 case TO_REVISION:
19352 if (value == null) {
19353 unsetToRevision();
19354 } else {
19355 setToRevision((Revision)value);
19356 }
19357 break;
19358
19359 case PATH_PATTERN:
19360 if (value == null) {
19361 unsetPathPattern();
19362 } else {
19363 setPathPattern((String)value);
19364 }
19365 break;
19366
19367 }
19368 }
19369
19370 public Object getFieldValue(_Fields field) {
19371 switch (field) {
19372 case PROJECT_NAME:
19373 return getProjectName();
19374
19375 case REPOSITORY_NAME:
19376 return getRepositoryName();
19377
19378 case FROM_REVISION:
19379 return getFromRevision();
19380
19381 case TO_REVISION:
19382 return getToRevision();
19383
19384 case PATH_PATTERN:
19385 return getPathPattern();
19386
19387 }
19388 throw new IllegalStateException();
19389 }
19390
19391
19392 public boolean isSet(_Fields field) {
19393 if (field == null) {
19394 throw new IllegalArgumentException();
19395 }
19396
19397 switch (field) {
19398 case PROJECT_NAME:
19399 return isSetProjectName();
19400 case REPOSITORY_NAME:
19401 return isSetRepositoryName();
19402 case FROM_REVISION:
19403 return isSetFromRevision();
19404 case TO_REVISION:
19405 return isSetToRevision();
19406 case PATH_PATTERN:
19407 return isSetPathPattern();
19408 }
19409 throw new IllegalStateException();
19410 }
19411
19412 @Override
19413 public boolean equals(Object that) {
19414 if (that == null)
19415 return false;
19416 if (that instanceof getHistory_args)
19417 return this.equals((getHistory_args)that);
19418 return false;
19419 }
19420
19421 public boolean equals(getHistory_args that) {
19422 if (that == null)
19423 return false;
19424
19425 boolean this_present_projectName = true && this.isSetProjectName();
19426 boolean that_present_projectName = true && that.isSetProjectName();
19427 if (this_present_projectName || that_present_projectName) {
19428 if (!(this_present_projectName && that_present_projectName))
19429 return false;
19430 if (!this.projectName.equals(that.projectName))
19431 return false;
19432 }
19433
19434 boolean this_present_repositoryName = true && this.isSetRepositoryName();
19435 boolean that_present_repositoryName = true && that.isSetRepositoryName();
19436 if (this_present_repositoryName || that_present_repositoryName) {
19437 if (!(this_present_repositoryName && that_present_repositoryName))
19438 return false;
19439 if (!this.repositoryName.equals(that.repositoryName))
19440 return false;
19441 }
19442
19443 boolean this_present_from = true && this.isSetFromRevision();
19444 boolean that_present_from = true && that.isSetFromRevision();
19445 if (this_present_from || that_present_from) {
19446 if (!(this_present_from && that_present_from))
19447 return false;
19448 if (!this.from.equals(that.from))
19449 return false;
19450 }
19451
19452 boolean this_present_to = true && this.isSetToRevision();
19453 boolean that_present_to = true && that.isSetToRevision();
19454 if (this_present_to || that_present_to) {
19455 if (!(this_present_to && that_present_to))
19456 return false;
19457 if (!this.to.equals(that.to))
19458 return false;
19459 }
19460
19461 boolean this_present_pathPattern = true && this.isSetPathPattern();
19462 boolean that_present_pathPattern = true && that.isSetPathPattern();
19463 if (this_present_pathPattern || that_present_pathPattern) {
19464 if (!(this_present_pathPattern && that_present_pathPattern))
19465 return false;
19466 if (!this.pathPattern.equals(that.pathPattern))
19467 return false;
19468 }
19469
19470 return true;
19471 }
19472
19473 @Override
19474 public int hashCode() {
19475 List<Object> list = new ArrayList<Object>();
19476
19477 boolean present_projectName = true && (isSetProjectName());
19478 list.add(present_projectName);
19479 if (present_projectName)
19480 list.add(projectName);
19481
19482 boolean present_repositoryName = true && (isSetRepositoryName());
19483 list.add(present_repositoryName);
19484 if (present_repositoryName)
19485 list.add(repositoryName);
19486
19487 boolean present_from = true && (isSetFromRevision());
19488 list.add(present_from);
19489 if (present_from)
19490 list.add(from);
19491
19492 boolean present_to = true && (isSetToRevision());
19493 list.add(present_to);
19494 if (present_to)
19495 list.add(to);
19496
19497 boolean present_pathPattern = true && (isSetPathPattern());
19498 list.add(present_pathPattern);
19499 if (present_pathPattern)
19500 list.add(pathPattern);
19501
19502 return list.hashCode();
19503 }
19504
19505 @Override
19506 public int compareTo(getHistory_args other) {
19507 if (!getClass().equals(other.getClass())) {
19508 return getClass().getName().compareTo(other.getClass().getName());
19509 }
19510
19511 int lastComparison = 0;
19512
19513 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
19514 if (lastComparison != 0) {
19515 return lastComparison;
19516 }
19517 if (isSetProjectName()) {
19518 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
19519 if (lastComparison != 0) {
19520 return lastComparison;
19521 }
19522 }
19523 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
19524 if (lastComparison != 0) {
19525 return lastComparison;
19526 }
19527 if (isSetRepositoryName()) {
19528 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
19529 if (lastComparison != 0) {
19530 return lastComparison;
19531 }
19532 }
19533 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
19534 if (lastComparison != 0) {
19535 return lastComparison;
19536 }
19537 if (isSetFromRevision()) {
19538 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
19539 if (lastComparison != 0) {
19540 return lastComparison;
19541 }
19542 }
19543 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
19544 if (lastComparison != 0) {
19545 return lastComparison;
19546 }
19547 if (isSetToRevision()) {
19548 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
19549 if (lastComparison != 0) {
19550 return lastComparison;
19551 }
19552 }
19553 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
19554 if (lastComparison != 0) {
19555 return lastComparison;
19556 }
19557 if (isSetPathPattern()) {
19558 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
19559 if (lastComparison != 0) {
19560 return lastComparison;
19561 }
19562 }
19563 return 0;
19564 }
19565
19566 public _Fields fieldForId(int fieldId) {
19567 return _Fields.findByThriftId(fieldId);
19568 }
19569
19570 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19571 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19572 }
19573
19574 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19575 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19576 }
19577
19578 @Override
19579 public String toString() {
19580 StringBuilder sb = new StringBuilder("getHistory_args(");
19581 boolean first = true;
19582
19583 sb.append("projectName:");
19584 if (this.projectName == null) {
19585 sb.append("null");
19586 } else {
19587 sb.append(this.projectName);
19588 }
19589 first = false;
19590 if (!first) sb.append(", ");
19591 sb.append("repositoryName:");
19592 if (this.repositoryName == null) {
19593 sb.append("null");
19594 } else {
19595 sb.append(this.repositoryName);
19596 }
19597 first = false;
19598 if (!first) sb.append(", ");
19599 sb.append("from:");
19600 if (this.from == null) {
19601 sb.append("null");
19602 } else {
19603 sb.append(this.from);
19604 }
19605 first = false;
19606 if (!first) sb.append(", ");
19607 sb.append("to:");
19608 if (this.to == null) {
19609 sb.append("null");
19610 } else {
19611 sb.append(this.to);
19612 }
19613 first = false;
19614 if (!first) sb.append(", ");
19615 sb.append("pathPattern:");
19616 if (this.pathPattern == null) {
19617 sb.append("null");
19618 } else {
19619 sb.append(this.pathPattern);
19620 }
19621 first = false;
19622 sb.append(")");
19623 return sb.toString();
19624 }
19625
19626 public void validate() throws org.apache.thrift.TException {
19627
19628
19629 if (from != null) {
19630 from.validate();
19631 }
19632 if (to != null) {
19633 to.validate();
19634 }
19635 }
19636
19637 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19638 try {
19639 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19640 } catch (org.apache.thrift.TException te) {
19641 throw new java.io.IOException(te);
19642 }
19643 }
19644
19645 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19646 try {
19647 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19648 } catch (org.apache.thrift.TException te) {
19649 throw new java.io.IOException(te);
19650 }
19651 }
19652
19653 private static class getHistory_argsStandardSchemeFactory implements SchemeFactory {
19654 public getHistory_argsStandardScheme getScheme() {
19655 return new getHistory_argsStandardScheme();
19656 }
19657 }
19658
19659 private static class getHistory_argsStandardScheme extends StandardScheme<getHistory_args> {
19660
19661 public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_args struct) throws org.apache.thrift.TException {
19662 org.apache.thrift.protocol.TField schemeField;
19663 iprot.readStructBegin();
19664 while (true)
19665 {
19666 schemeField = iprot.readFieldBegin();
19667 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19668 break;
19669 }
19670 switch (schemeField.id) {
19671 case 1:
19672 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19673 struct.projectName = iprot.readString();
19674 struct.setProjectNameIsSet(true);
19675 } else {
19676 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19677 }
19678 break;
19679 case 2:
19680 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19681 struct.repositoryName = iprot.readString();
19682 struct.setRepositoryNameIsSet(true);
19683 } else {
19684 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19685 }
19686 break;
19687 case 3:
19688 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19689 struct.from = new Revision();
19690 struct.from.read(iprot);
19691 struct.setFromRevisionIsSet(true);
19692 } else {
19693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19694 }
19695 break;
19696 case 4:
19697 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
19698 struct.to = new Revision();
19699 struct.to.read(iprot);
19700 struct.setToRevisionIsSet(true);
19701 } else {
19702 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19703 }
19704 break;
19705 case 5:
19706 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19707 struct.pathPattern = iprot.readString();
19708 struct.setPathPatternIsSet(true);
19709 } else {
19710 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19711 }
19712 break;
19713 default:
19714 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19715 }
19716 iprot.readFieldEnd();
19717 }
19718 iprot.readStructEnd();
19719
19720
19721 struct.validate();
19722 }
19723
19724 public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_args struct) throws org.apache.thrift.TException {
19725 struct.validate();
19726
19727 oprot.writeStructBegin(STRUCT_DESC);
19728 if (struct.projectName != null) {
19729 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
19730 oprot.writeString(struct.projectName);
19731 oprot.writeFieldEnd();
19732 }
19733 if (struct.repositoryName != null) {
19734 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
19735 oprot.writeString(struct.repositoryName);
19736 oprot.writeFieldEnd();
19737 }
19738 if (struct.from != null) {
19739 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
19740 struct.from.write(oprot);
19741 oprot.writeFieldEnd();
19742 }
19743 if (struct.to != null) {
19744 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
19745 struct.to.write(oprot);
19746 oprot.writeFieldEnd();
19747 }
19748 if (struct.pathPattern != null) {
19749 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
19750 oprot.writeString(struct.pathPattern);
19751 oprot.writeFieldEnd();
19752 }
19753 oprot.writeFieldStop();
19754 oprot.writeStructEnd();
19755 }
19756
19757 }
19758
19759 private static class getHistory_argsTupleSchemeFactory implements SchemeFactory {
19760 public getHistory_argsTupleScheme getScheme() {
19761 return new getHistory_argsTupleScheme();
19762 }
19763 }
19764
19765 private static class getHistory_argsTupleScheme extends TupleScheme<getHistory_args> {
19766
19767 @Override
19768 public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException {
19769 TTupleProtocol oprot = (TTupleProtocol) prot;
19770 BitSet optionals = new BitSet();
19771 if (struct.isSetProjectName()) {
19772 optionals.set(0);
19773 }
19774 if (struct.isSetRepositoryName()) {
19775 optionals.set(1);
19776 }
19777 if (struct.isSetFromRevision()) {
19778 optionals.set(2);
19779 }
19780 if (struct.isSetToRevision()) {
19781 optionals.set(3);
19782 }
19783 if (struct.isSetPathPattern()) {
19784 optionals.set(4);
19785 }
19786 oprot.writeBitSet(optionals, 5);
19787 if (struct.isSetProjectName()) {
19788 oprot.writeString(struct.projectName);
19789 }
19790 if (struct.isSetRepositoryName()) {
19791 oprot.writeString(struct.repositoryName);
19792 }
19793 if (struct.isSetFromRevision()) {
19794 struct.from.write(oprot);
19795 }
19796 if (struct.isSetToRevision()) {
19797 struct.to.write(oprot);
19798 }
19799 if (struct.isSetPathPattern()) {
19800 oprot.writeString(struct.pathPattern);
19801 }
19802 }
19803
19804 @Override
19805 public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException {
19806 TTupleProtocol iprot = (TTupleProtocol) prot;
19807 BitSet incoming = iprot.readBitSet(5);
19808 if (incoming.get(0)) {
19809 struct.projectName = iprot.readString();
19810 struct.setProjectNameIsSet(true);
19811 }
19812 if (incoming.get(1)) {
19813 struct.repositoryName = iprot.readString();
19814 struct.setRepositoryNameIsSet(true);
19815 }
19816 if (incoming.get(2)) {
19817 struct.from = new Revision();
19818 struct.from.read(iprot);
19819 struct.setFromRevisionIsSet(true);
19820 }
19821 if (incoming.get(3)) {
19822 struct.to = new Revision();
19823 struct.to.read(iprot);
19824 struct.setToRevisionIsSet(true);
19825 }
19826 if (incoming.get(4)) {
19827 struct.pathPattern = iprot.readString();
19828 struct.setPathPatternIsSet(true);
19829 }
19830 }
19831 }
19832
19833 }
19834
19835 public static class getHistory_result implements org.apache.thrift.TBase<getHistory_result, getHistory_result._Fields>, java.io.Serializable, Cloneable, Comparable<getHistory_result> {
19836 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_result");
19837
19838 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19839 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19840
19841 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19842 static {
19843 schemes.put(StandardScheme.class, new getHistory_resultStandardSchemeFactory());
19844 schemes.put(TupleScheme.class, new getHistory_resultTupleSchemeFactory());
19845 }
19846
19847 public List<Commit> success;
19848 public CentralDogmaException e;
19849
19850
19851 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19852 SUCCESS((short)0, "success"),
19853 E((short)1, "e");
19854
19855 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19856
19857 static {
19858 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19859 byName.put(field.getFieldName(), field);
19860 }
19861 }
19862
19863
19864
19865
19866 public static _Fields findByThriftId(int fieldId) {
19867 switch(fieldId) {
19868 case 0:
19869 return SUCCESS;
19870 case 1:
19871 return E;
19872 default:
19873 return null;
19874 }
19875 }
19876
19877
19878
19879
19880
19881 public static _Fields findByThriftIdOrThrow(int fieldId) {
19882 _Fields fields = findByThriftId(fieldId);
19883 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19884 return fields;
19885 }
19886
19887
19888
19889
19890 public static _Fields findByName(String name) {
19891 return byName.get(name);
19892 }
19893
19894 private final short _thriftId;
19895 private final String _fieldName;
19896
19897 _Fields(short thriftId, String fieldName) {
19898 _thriftId = thriftId;
19899 _fieldName = fieldName;
19900 }
19901
19902 public short getThriftFieldId() {
19903 return _thriftId;
19904 }
19905
19906 public String getFieldName() {
19907 return _fieldName;
19908 }
19909 }
19910
19911
19912 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19913 static {
19914 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19915 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19916 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
19917 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Commit.class))));
19918 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
19919 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19920 metaDataMap = Collections.unmodifiableMap(tmpMap);
19921 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistory_result.class, metaDataMap);
19922 }
19923
19924 public getHistory_result() {
19925 }
19926
19927 public getHistory_result(
19928 List<Commit> success,
19929 CentralDogmaException e)
19930 {
19931 this();
19932 this.success = success;
19933 this.e = e;
19934 }
19935
19936
19937
19938
19939 public getHistory_result(getHistory_result other) {
19940 if (other.isSetSuccess()) {
19941 List<Commit> __this__success = new ArrayList<Commit>(other.success.size());
19942 for (Commit other_element : other.success) {
19943 __this__success.add(new Commit(other_element));
19944 }
19945 this.success = __this__success;
19946 }
19947 if (other.isSetE()) {
19948 this.e = new CentralDogmaException(other.e);
19949 }
19950 }
19951
19952 public getHistory_result deepCopy() {
19953 return new getHistory_result(this);
19954 }
19955
19956 @Override
19957 public void clear() {
19958 this.success = null;
19959 this.e = null;
19960 }
19961
19962 public int getSuccessSize() {
19963 return (this.success == null) ? 0 : this.success.size();
19964 }
19965
19966 public java.util.Iterator<Commit> getSuccessIterator() {
19967 return (this.success == null) ? null : this.success.iterator();
19968 }
19969
19970 public void addToSuccess(Commit elem) {
19971 if (this.success == null) {
19972 this.success = new ArrayList<Commit>();
19973 }
19974 this.success.add(elem);
19975 }
19976
19977 public List<Commit> getSuccess() {
19978 return this.success;
19979 }
19980
19981 public getHistory_result setSuccess(List<Commit> success) {
19982 this.success = success;
19983 return this;
19984 }
19985
19986 public void unsetSuccess() {
19987 this.success = null;
19988 }
19989
19990
19991 public boolean isSetSuccess() {
19992 return this.success != null;
19993 }
19994
19995 public void setSuccessIsSet(boolean value) {
19996 if (!value) {
19997 this.success = null;
19998 }
19999 }
20000
20001 public CentralDogmaException getE() {
20002 return this.e;
20003 }
20004
20005 public getHistory_result setE(CentralDogmaException e) {
20006 this.e = e;
20007 return this;
20008 }
20009
20010 public void unsetE() {
20011 this.e = null;
20012 }
20013
20014
20015 public boolean isSetE() {
20016 return this.e != null;
20017 }
20018
20019 public void setEIsSet(boolean value) {
20020 if (!value) {
20021 this.e = null;
20022 }
20023 }
20024
20025 public void setFieldValue(_Fields field, Object value) {
20026 switch (field) {
20027 case SUCCESS:
20028 if (value == null) {
20029 unsetSuccess();
20030 } else {
20031 setSuccess((List<Commit>)value);
20032 }
20033 break;
20034
20035 case E:
20036 if (value == null) {
20037 unsetE();
20038 } else {
20039 setE((CentralDogmaException)value);
20040 }
20041 break;
20042
20043 }
20044 }
20045
20046 public Object getFieldValue(_Fields field) {
20047 switch (field) {
20048 case SUCCESS:
20049 return getSuccess();
20050
20051 case E:
20052 return getE();
20053
20054 }
20055 throw new IllegalStateException();
20056 }
20057
20058
20059 public boolean isSet(_Fields field) {
20060 if (field == null) {
20061 throw new IllegalArgumentException();
20062 }
20063
20064 switch (field) {
20065 case SUCCESS:
20066 return isSetSuccess();
20067 case E:
20068 return isSetE();
20069 }
20070 throw new IllegalStateException();
20071 }
20072
20073 @Override
20074 public boolean equals(Object that) {
20075 if (that == null)
20076 return false;
20077 if (that instanceof getHistory_result)
20078 return this.equals((getHistory_result)that);
20079 return false;
20080 }
20081
20082 public boolean equals(getHistory_result that) {
20083 if (that == null)
20084 return false;
20085
20086 boolean this_present_success = true && this.isSetSuccess();
20087 boolean that_present_success = true && that.isSetSuccess();
20088 if (this_present_success || that_present_success) {
20089 if (!(this_present_success && that_present_success))
20090 return false;
20091 if (!this.success.equals(that.success))
20092 return false;
20093 }
20094
20095 boolean this_present_e = true && this.isSetE();
20096 boolean that_present_e = true && that.isSetE();
20097 if (this_present_e || that_present_e) {
20098 if (!(this_present_e && that_present_e))
20099 return false;
20100 if (!this.e.equals(that.e))
20101 return false;
20102 }
20103
20104 return true;
20105 }
20106
20107 @Override
20108 public int hashCode() {
20109 List<Object> list = new ArrayList<Object>();
20110
20111 boolean present_success = true && (isSetSuccess());
20112 list.add(present_success);
20113 if (present_success)
20114 list.add(success);
20115
20116 boolean present_e = true && (isSetE());
20117 list.add(present_e);
20118 if (present_e)
20119 list.add(e);
20120
20121 return list.hashCode();
20122 }
20123
20124 @Override
20125 public int compareTo(getHistory_result other) {
20126 if (!getClass().equals(other.getClass())) {
20127 return getClass().getName().compareTo(other.getClass().getName());
20128 }
20129
20130 int lastComparison = 0;
20131
20132 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20133 if (lastComparison != 0) {
20134 return lastComparison;
20135 }
20136 if (isSetSuccess()) {
20137 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20138 if (lastComparison != 0) {
20139 return lastComparison;
20140 }
20141 }
20142 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
20143 if (lastComparison != 0) {
20144 return lastComparison;
20145 }
20146 if (isSetE()) {
20147 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
20148 if (lastComparison != 0) {
20149 return lastComparison;
20150 }
20151 }
20152 return 0;
20153 }
20154
20155 public _Fields fieldForId(int fieldId) {
20156 return _Fields.findByThriftId(fieldId);
20157 }
20158
20159 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20160 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20161 }
20162
20163 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20164 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20165 }
20166
20167 @Override
20168 public String toString() {
20169 StringBuilder sb = new StringBuilder("getHistory_result(");
20170 boolean first = true;
20171
20172 sb.append("success:");
20173 if (this.success == null) {
20174 sb.append("null");
20175 } else {
20176 sb.append(this.success);
20177 }
20178 first = false;
20179 if (!first) sb.append(", ");
20180 sb.append("e:");
20181 if (this.e == null) {
20182 sb.append("null");
20183 } else {
20184 sb.append(this.e);
20185 }
20186 first = false;
20187 sb.append(")");
20188 return sb.toString();
20189 }
20190
20191 public void validate() throws org.apache.thrift.TException {
20192
20193
20194 }
20195
20196 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20197 try {
20198 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20199 } catch (org.apache.thrift.TException te) {
20200 throw new java.io.IOException(te);
20201 }
20202 }
20203
20204 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20205 try {
20206 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20207 } catch (org.apache.thrift.TException te) {
20208 throw new java.io.IOException(te);
20209 }
20210 }
20211
20212 private static class getHistory_resultStandardSchemeFactory implements SchemeFactory {
20213 public getHistory_resultStandardScheme getScheme() {
20214 return new getHistory_resultStandardScheme();
20215 }
20216 }
20217
20218 private static class getHistory_resultStandardScheme extends StandardScheme<getHistory_result> {
20219
20220 public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_result struct) throws org.apache.thrift.TException {
20221 org.apache.thrift.protocol.TField schemeField;
20222 iprot.readStructBegin();
20223 while (true)
20224 {
20225 schemeField = iprot.readFieldBegin();
20226 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20227 break;
20228 }
20229 switch (schemeField.id) {
20230 case 0:
20231 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
20232 {
20233 org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
20234 struct.success = new ArrayList<Commit>(_list120.size);
20235 Commit _elem121;
20236 for (int _i122 = 0; _i122 < _list120.size; ++_i122)
20237 {
20238 _elem121 = new Commit();
20239 _elem121.read(iprot);
20240 struct.success.add(_elem121);
20241 }
20242 iprot.readListEnd();
20243 }
20244 struct.setSuccessIsSet(true);
20245 } else {
20246 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20247 }
20248 break;
20249 case 1:
20250 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20251 struct.e = new CentralDogmaException();
20252 struct.e.read(iprot);
20253 struct.setEIsSet(true);
20254 } else {
20255 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20256 }
20257 break;
20258 default:
20259 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20260 }
20261 iprot.readFieldEnd();
20262 }
20263 iprot.readStructEnd();
20264
20265
20266 struct.validate();
20267 }
20268
20269 public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_result struct) throws org.apache.thrift.TException {
20270 struct.validate();
20271
20272 oprot.writeStructBegin(STRUCT_DESC);
20273 if (struct.success != null) {
20274 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20275 {
20276 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
20277 for (Commit _iter123 : struct.success)
20278 {
20279 _iter123.write(oprot);
20280 }
20281 oprot.writeListEnd();
20282 }
20283 oprot.writeFieldEnd();
20284 }
20285 if (struct.e != null) {
20286 oprot.writeFieldBegin(E_FIELD_DESC);
20287 struct.e.write(oprot);
20288 oprot.writeFieldEnd();
20289 }
20290 oprot.writeFieldStop();
20291 oprot.writeStructEnd();
20292 }
20293
20294 }
20295
20296 private static class getHistory_resultTupleSchemeFactory implements SchemeFactory {
20297 public getHistory_resultTupleScheme getScheme() {
20298 return new getHistory_resultTupleScheme();
20299 }
20300 }
20301
20302 private static class getHistory_resultTupleScheme extends TupleScheme<getHistory_result> {
20303
20304 @Override
20305 public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException {
20306 TTupleProtocol oprot = (TTupleProtocol) prot;
20307 BitSet optionals = new BitSet();
20308 if (struct.isSetSuccess()) {
20309 optionals.set(0);
20310 }
20311 if (struct.isSetE()) {
20312 optionals.set(1);
20313 }
20314 oprot.writeBitSet(optionals, 2);
20315 if (struct.isSetSuccess()) {
20316 {
20317 oprot.writeI32(struct.success.size());
20318 for (Commit _iter124 : struct.success)
20319 {
20320 _iter124.write(oprot);
20321 }
20322 }
20323 }
20324 if (struct.isSetE()) {
20325 struct.e.write(oprot);
20326 }
20327 }
20328
20329 @Override
20330 public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException {
20331 TTupleProtocol iprot = (TTupleProtocol) prot;
20332 BitSet incoming = iprot.readBitSet(2);
20333 if (incoming.get(0)) {
20334 {
20335 org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
20336 struct.success = new ArrayList<Commit>(_list125.size);
20337 Commit _elem126;
20338 for (int _i127 = 0; _i127 < _list125.size; ++_i127)
20339 {
20340 _elem126 = new Commit();
20341 _elem126.read(iprot);
20342 struct.success.add(_elem126);
20343 }
20344 }
20345 struct.setSuccessIsSet(true);
20346 }
20347 if (incoming.get(1)) {
20348 struct.e = new CentralDogmaException();
20349 struct.e.read(iprot);
20350 struct.setEIsSet(true);
20351 }
20352 }
20353 }
20354
20355 }
20356
20357 public static class getDiffs_args implements org.apache.thrift.TBase<getDiffs_args, getDiffs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getDiffs_args> {
20358 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_args");
20359
20360 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
20361 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
20362 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
20363 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
20364 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5);
20365
20366 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20367 static {
20368 schemes.put(StandardScheme.class, new getDiffs_argsStandardSchemeFactory());
20369 schemes.put(TupleScheme.class, new getDiffs_argsTupleSchemeFactory());
20370 }
20371
20372 public String projectName;
20373 public String repositoryName;
20374 public Revision from;
20375 public Revision to;
20376 public String pathPattern;
20377
20378
20379 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20380 PROJECT_NAME((short)1, "projectName"),
20381 REPOSITORY_NAME((short)2, "repositoryName"),
20382 FROM_REVISION((short)3, "from"),
20383 TO_REVISION((short)4, "to"),
20384 PATH_PATTERN((short)5, "pathPattern");
20385
20386 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20387
20388 static {
20389 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20390 byName.put(field.getFieldName(), field);
20391 }
20392 }
20393
20394
20395
20396
20397 public static _Fields findByThriftId(int fieldId) {
20398 switch(fieldId) {
20399 case 1:
20400 return PROJECT_NAME;
20401 case 2:
20402 return REPOSITORY_NAME;
20403 case 3:
20404 return FROM_REVISION;
20405 case 4:
20406 return TO_REVISION;
20407 case 5:
20408 return PATH_PATTERN;
20409 default:
20410 return null;
20411 }
20412 }
20413
20414
20415
20416
20417
20418 public static _Fields findByThriftIdOrThrow(int fieldId) {
20419 _Fields fields = findByThriftId(fieldId);
20420 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20421 return fields;
20422 }
20423
20424
20425
20426
20427 public static _Fields findByName(String name) {
20428 return byName.get(name);
20429 }
20430
20431 private final short _thriftId;
20432 private final String _fieldName;
20433
20434 _Fields(short thriftId, String fieldName) {
20435 _thriftId = thriftId;
20436 _fieldName = fieldName;
20437 }
20438
20439 public short getThriftFieldId() {
20440 return _thriftId;
20441 }
20442
20443 public String getFieldName() {
20444 return _fieldName;
20445 }
20446 }
20447
20448
20449 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20450 static {
20451 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20452 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
20453 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20454 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
20455 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20456 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
20457 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
20458 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
20459 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
20460 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
20461 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20462 metaDataMap = Collections.unmodifiableMap(tmpMap);
20463 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDiffs_args.class, metaDataMap);
20464 }
20465
20466 public getDiffs_args() {
20467 }
20468
20469 public getDiffs_args(
20470 String projectName,
20471 String repositoryName,
20472 Revision from,
20473 Revision to,
20474 String pathPattern)
20475 {
20476 this();
20477 this.projectName = projectName;
20478 this.repositoryName = repositoryName;
20479 this.from = from;
20480 this.to = to;
20481 this.pathPattern = pathPattern;
20482 }
20483
20484
20485
20486
20487 public getDiffs_args(getDiffs_args other) {
20488 if (other.isSetProjectName()) {
20489 this.projectName = other.projectName;
20490 }
20491 if (other.isSetRepositoryName()) {
20492 this.repositoryName = other.repositoryName;
20493 }
20494 if (other.isSetFromRevision()) {
20495 this.from = new Revision(other.from);
20496 }
20497 if (other.isSetToRevision()) {
20498 this.to = new Revision(other.to);
20499 }
20500 if (other.isSetPathPattern()) {
20501 this.pathPattern = other.pathPattern;
20502 }
20503 }
20504
20505 public getDiffs_args deepCopy() {
20506 return new getDiffs_args(this);
20507 }
20508
20509 @Override
20510 public void clear() {
20511 this.projectName = null;
20512 this.repositoryName = null;
20513 this.from = null;
20514 this.to = null;
20515 this.pathPattern = null;
20516 }
20517
20518 public String getProjectName() {
20519 return this.projectName;
20520 }
20521
20522 public getDiffs_args setProjectName(String projectName) {
20523 this.projectName = projectName;
20524 return this;
20525 }
20526
20527 public void unsetProjectName() {
20528 this.projectName = null;
20529 }
20530
20531
20532 public boolean isSetProjectName() {
20533 return this.projectName != null;
20534 }
20535
20536 public void setProjectNameIsSet(boolean value) {
20537 if (!value) {
20538 this.projectName = null;
20539 }
20540 }
20541
20542 public String getRepositoryName() {
20543 return this.repositoryName;
20544 }
20545
20546 public getDiffs_args setRepositoryName(String repositoryName) {
20547 this.repositoryName = repositoryName;
20548 return this;
20549 }
20550
20551 public void unsetRepositoryName() {
20552 this.repositoryName = null;
20553 }
20554
20555
20556 public boolean isSetRepositoryName() {
20557 return this.repositoryName != null;
20558 }
20559
20560 public void setRepositoryNameIsSet(boolean value) {
20561 if (!value) {
20562 this.repositoryName = null;
20563 }
20564 }
20565
20566 public Revision getFromRevision() {
20567 return this.from;
20568 }
20569
20570 public getDiffs_args setFromRevision(Revision from) {
20571 this.from = from;
20572 return this;
20573 }
20574
20575 public void unsetFromRevision() {
20576 this.from = null;
20577 }
20578
20579
20580 public boolean isSetFromRevision() {
20581 return this.from != null;
20582 }
20583
20584 public void setFromRevisionIsSet(boolean value) {
20585 if (!value) {
20586 this.from = null;
20587 }
20588 }
20589
20590 public Revision getToRevision() {
20591 return this.to;
20592 }
20593
20594 public getDiffs_args setToRevision(Revision to) {
20595 this.to = to;
20596 return this;
20597 }
20598
20599 public void unsetToRevision() {
20600 this.to = null;
20601 }
20602
20603
20604 public boolean isSetToRevision() {
20605 return this.to != null;
20606 }
20607
20608 public void setToRevisionIsSet(boolean value) {
20609 if (!value) {
20610 this.to = null;
20611 }
20612 }
20613
20614 public String getPathPattern() {
20615 return this.pathPattern;
20616 }
20617
20618 public getDiffs_args setPathPattern(String pathPattern) {
20619 this.pathPattern = pathPattern;
20620 return this;
20621 }
20622
20623 public void unsetPathPattern() {
20624 this.pathPattern = null;
20625 }
20626
20627
20628 public boolean isSetPathPattern() {
20629 return this.pathPattern != null;
20630 }
20631
20632 public void setPathPatternIsSet(boolean value) {
20633 if (!value) {
20634 this.pathPattern = null;
20635 }
20636 }
20637
20638 public void setFieldValue(_Fields field, Object value) {
20639 switch (field) {
20640 case PROJECT_NAME:
20641 if (value == null) {
20642 unsetProjectName();
20643 } else {
20644 setProjectName((String)value);
20645 }
20646 break;
20647
20648 case REPOSITORY_NAME:
20649 if (value == null) {
20650 unsetRepositoryName();
20651 } else {
20652 setRepositoryName((String)value);
20653 }
20654 break;
20655
20656 case FROM_REVISION:
20657 if (value == null) {
20658 unsetFromRevision();
20659 } else {
20660 setFromRevision((Revision)value);
20661 }
20662 break;
20663
20664 case TO_REVISION:
20665 if (value == null) {
20666 unsetToRevision();
20667 } else {
20668 setToRevision((Revision)value);
20669 }
20670 break;
20671
20672 case PATH_PATTERN:
20673 if (value == null) {
20674 unsetPathPattern();
20675 } else {
20676 setPathPattern((String)value);
20677 }
20678 break;
20679
20680 }
20681 }
20682
20683 public Object getFieldValue(_Fields field) {
20684 switch (field) {
20685 case PROJECT_NAME:
20686 return getProjectName();
20687
20688 case REPOSITORY_NAME:
20689 return getRepositoryName();
20690
20691 case FROM_REVISION:
20692 return getFromRevision();
20693
20694 case TO_REVISION:
20695 return getToRevision();
20696
20697 case PATH_PATTERN:
20698 return getPathPattern();
20699
20700 }
20701 throw new IllegalStateException();
20702 }
20703
20704
20705 public boolean isSet(_Fields field) {
20706 if (field == null) {
20707 throw new IllegalArgumentException();
20708 }
20709
20710 switch (field) {
20711 case PROJECT_NAME:
20712 return isSetProjectName();
20713 case REPOSITORY_NAME:
20714 return isSetRepositoryName();
20715 case FROM_REVISION:
20716 return isSetFromRevision();
20717 case TO_REVISION:
20718 return isSetToRevision();
20719 case PATH_PATTERN:
20720 return isSetPathPattern();
20721 }
20722 throw new IllegalStateException();
20723 }
20724
20725 @Override
20726 public boolean equals(Object that) {
20727 if (that == null)
20728 return false;
20729 if (that instanceof getDiffs_args)
20730 return this.equals((getDiffs_args)that);
20731 return false;
20732 }
20733
20734 public boolean equals(getDiffs_args that) {
20735 if (that == null)
20736 return false;
20737
20738 boolean this_present_projectName = true && this.isSetProjectName();
20739 boolean that_present_projectName = true && that.isSetProjectName();
20740 if (this_present_projectName || that_present_projectName) {
20741 if (!(this_present_projectName && that_present_projectName))
20742 return false;
20743 if (!this.projectName.equals(that.projectName))
20744 return false;
20745 }
20746
20747 boolean this_present_repositoryName = true && this.isSetRepositoryName();
20748 boolean that_present_repositoryName = true && that.isSetRepositoryName();
20749 if (this_present_repositoryName || that_present_repositoryName) {
20750 if (!(this_present_repositoryName && that_present_repositoryName))
20751 return false;
20752 if (!this.repositoryName.equals(that.repositoryName))
20753 return false;
20754 }
20755
20756 boolean this_present_from = true && this.isSetFromRevision();
20757 boolean that_present_from = true && that.isSetFromRevision();
20758 if (this_present_from || that_present_from) {
20759 if (!(this_present_from && that_present_from))
20760 return false;
20761 if (!this.from.equals(that.from))
20762 return false;
20763 }
20764
20765 boolean this_present_to = true && this.isSetToRevision();
20766 boolean that_present_to = true && that.isSetToRevision();
20767 if (this_present_to || that_present_to) {
20768 if (!(this_present_to && that_present_to))
20769 return false;
20770 if (!this.to.equals(that.to))
20771 return false;
20772 }
20773
20774 boolean this_present_pathPattern = true && this.isSetPathPattern();
20775 boolean that_present_pathPattern = true && that.isSetPathPattern();
20776 if (this_present_pathPattern || that_present_pathPattern) {
20777 if (!(this_present_pathPattern && that_present_pathPattern))
20778 return false;
20779 if (!this.pathPattern.equals(that.pathPattern))
20780 return false;
20781 }
20782
20783 return true;
20784 }
20785
20786 @Override
20787 public int hashCode() {
20788 List<Object> list = new ArrayList<Object>();
20789
20790 boolean present_projectName = true && (isSetProjectName());
20791 list.add(present_projectName);
20792 if (present_projectName)
20793 list.add(projectName);
20794
20795 boolean present_repositoryName = true && (isSetRepositoryName());
20796 list.add(present_repositoryName);
20797 if (present_repositoryName)
20798 list.add(repositoryName);
20799
20800 boolean present_from = true && (isSetFromRevision());
20801 list.add(present_from);
20802 if (present_from)
20803 list.add(from);
20804
20805 boolean present_to = true && (isSetToRevision());
20806 list.add(present_to);
20807 if (present_to)
20808 list.add(to);
20809
20810 boolean present_pathPattern = true && (isSetPathPattern());
20811 list.add(present_pathPattern);
20812 if (present_pathPattern)
20813 list.add(pathPattern);
20814
20815 return list.hashCode();
20816 }
20817
20818 @Override
20819 public int compareTo(getDiffs_args other) {
20820 if (!getClass().equals(other.getClass())) {
20821 return getClass().getName().compareTo(other.getClass().getName());
20822 }
20823
20824 int lastComparison = 0;
20825
20826 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
20827 if (lastComparison != 0) {
20828 return lastComparison;
20829 }
20830 if (isSetProjectName()) {
20831 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
20832 if (lastComparison != 0) {
20833 return lastComparison;
20834 }
20835 }
20836 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
20837 if (lastComparison != 0) {
20838 return lastComparison;
20839 }
20840 if (isSetRepositoryName()) {
20841 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
20842 if (lastComparison != 0) {
20843 return lastComparison;
20844 }
20845 }
20846 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
20847 if (lastComparison != 0) {
20848 return lastComparison;
20849 }
20850 if (isSetFromRevision()) {
20851 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
20852 if (lastComparison != 0) {
20853 return lastComparison;
20854 }
20855 }
20856 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
20857 if (lastComparison != 0) {
20858 return lastComparison;
20859 }
20860 if (isSetToRevision()) {
20861 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
20862 if (lastComparison != 0) {
20863 return lastComparison;
20864 }
20865 }
20866 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
20867 if (lastComparison != 0) {
20868 return lastComparison;
20869 }
20870 if (isSetPathPattern()) {
20871 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
20872 if (lastComparison != 0) {
20873 return lastComparison;
20874 }
20875 }
20876 return 0;
20877 }
20878
20879 public _Fields fieldForId(int fieldId) {
20880 return _Fields.findByThriftId(fieldId);
20881 }
20882
20883 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20884 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20885 }
20886
20887 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20888 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20889 }
20890
20891 @Override
20892 public String toString() {
20893 StringBuilder sb = new StringBuilder("getDiffs_args(");
20894 boolean first = true;
20895
20896 sb.append("projectName:");
20897 if (this.projectName == null) {
20898 sb.append("null");
20899 } else {
20900 sb.append(this.projectName);
20901 }
20902 first = false;
20903 if (!first) sb.append(", ");
20904 sb.append("repositoryName:");
20905 if (this.repositoryName == null) {
20906 sb.append("null");
20907 } else {
20908 sb.append(this.repositoryName);
20909 }
20910 first = false;
20911 if (!first) sb.append(", ");
20912 sb.append("from:");
20913 if (this.from == null) {
20914 sb.append("null");
20915 } else {
20916 sb.append(this.from);
20917 }
20918 first = false;
20919 if (!first) sb.append(", ");
20920 sb.append("to:");
20921 if (this.to == null) {
20922 sb.append("null");
20923 } else {
20924 sb.append(this.to);
20925 }
20926 first = false;
20927 if (!first) sb.append(", ");
20928 sb.append("pathPattern:");
20929 if (this.pathPattern == null) {
20930 sb.append("null");
20931 } else {
20932 sb.append(this.pathPattern);
20933 }
20934 first = false;
20935 sb.append(")");
20936 return sb.toString();
20937 }
20938
20939 public void validate() throws org.apache.thrift.TException {
20940
20941
20942 if (from != null) {
20943 from.validate();
20944 }
20945 if (to != null) {
20946 to.validate();
20947 }
20948 }
20949
20950 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20951 try {
20952 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20953 } catch (org.apache.thrift.TException te) {
20954 throw new java.io.IOException(te);
20955 }
20956 }
20957
20958 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20959 try {
20960 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20961 } catch (org.apache.thrift.TException te) {
20962 throw new java.io.IOException(te);
20963 }
20964 }
20965
20966 private static class getDiffs_argsStandardSchemeFactory implements SchemeFactory {
20967 public getDiffs_argsStandardScheme getScheme() {
20968 return new getDiffs_argsStandardScheme();
20969 }
20970 }
20971
20972 private static class getDiffs_argsStandardScheme extends StandardScheme<getDiffs_args> {
20973
20974 public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_args struct) throws org.apache.thrift.TException {
20975 org.apache.thrift.protocol.TField schemeField;
20976 iprot.readStructBegin();
20977 while (true)
20978 {
20979 schemeField = iprot.readFieldBegin();
20980 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20981 break;
20982 }
20983 switch (schemeField.id) {
20984 case 1:
20985 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20986 struct.projectName = iprot.readString();
20987 struct.setProjectNameIsSet(true);
20988 } else {
20989 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20990 }
20991 break;
20992 case 2:
20993 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20994 struct.repositoryName = iprot.readString();
20995 struct.setRepositoryNameIsSet(true);
20996 } else {
20997 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20998 }
20999 break;
21000 case 3:
21001 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21002 struct.from = new Revision();
21003 struct.from.read(iprot);
21004 struct.setFromRevisionIsSet(true);
21005 } else {
21006 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21007 }
21008 break;
21009 case 4:
21010 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21011 struct.to = new Revision();
21012 struct.to.read(iprot);
21013 struct.setToRevisionIsSet(true);
21014 } else {
21015 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21016 }
21017 break;
21018 case 5:
21019 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
21020 struct.pathPattern = iprot.readString();
21021 struct.setPathPatternIsSet(true);
21022 } else {
21023 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21024 }
21025 break;
21026 default:
21027 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21028 }
21029 iprot.readFieldEnd();
21030 }
21031 iprot.readStructEnd();
21032
21033
21034 struct.validate();
21035 }
21036
21037 public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_args struct) throws org.apache.thrift.TException {
21038 struct.validate();
21039
21040 oprot.writeStructBegin(STRUCT_DESC);
21041 if (struct.projectName != null) {
21042 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
21043 oprot.writeString(struct.projectName);
21044 oprot.writeFieldEnd();
21045 }
21046 if (struct.repositoryName != null) {
21047 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
21048 oprot.writeString(struct.repositoryName);
21049 oprot.writeFieldEnd();
21050 }
21051 if (struct.from != null) {
21052 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
21053 struct.from.write(oprot);
21054 oprot.writeFieldEnd();
21055 }
21056 if (struct.to != null) {
21057 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
21058 struct.to.write(oprot);
21059 oprot.writeFieldEnd();
21060 }
21061 if (struct.pathPattern != null) {
21062 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
21063 oprot.writeString(struct.pathPattern);
21064 oprot.writeFieldEnd();
21065 }
21066 oprot.writeFieldStop();
21067 oprot.writeStructEnd();
21068 }
21069
21070 }
21071
21072 private static class getDiffs_argsTupleSchemeFactory implements SchemeFactory {
21073 public getDiffs_argsTupleScheme getScheme() {
21074 return new getDiffs_argsTupleScheme();
21075 }
21076 }
21077
21078 private static class getDiffs_argsTupleScheme extends TupleScheme<getDiffs_args> {
21079
21080 @Override
21081 public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException {
21082 TTupleProtocol oprot = (TTupleProtocol) prot;
21083 BitSet optionals = new BitSet();
21084 if (struct.isSetProjectName()) {
21085 optionals.set(0);
21086 }
21087 if (struct.isSetRepositoryName()) {
21088 optionals.set(1);
21089 }
21090 if (struct.isSetFromRevision()) {
21091 optionals.set(2);
21092 }
21093 if (struct.isSetToRevision()) {
21094 optionals.set(3);
21095 }
21096 if (struct.isSetPathPattern()) {
21097 optionals.set(4);
21098 }
21099 oprot.writeBitSet(optionals, 5);
21100 if (struct.isSetProjectName()) {
21101 oprot.writeString(struct.projectName);
21102 }
21103 if (struct.isSetRepositoryName()) {
21104 oprot.writeString(struct.repositoryName);
21105 }
21106 if (struct.isSetFromRevision()) {
21107 struct.from.write(oprot);
21108 }
21109 if (struct.isSetToRevision()) {
21110 struct.to.write(oprot);
21111 }
21112 if (struct.isSetPathPattern()) {
21113 oprot.writeString(struct.pathPattern);
21114 }
21115 }
21116
21117 @Override
21118 public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException {
21119 TTupleProtocol iprot = (TTupleProtocol) prot;
21120 BitSet incoming = iprot.readBitSet(5);
21121 if (incoming.get(0)) {
21122 struct.projectName = iprot.readString();
21123 struct.setProjectNameIsSet(true);
21124 }
21125 if (incoming.get(1)) {
21126 struct.repositoryName = iprot.readString();
21127 struct.setRepositoryNameIsSet(true);
21128 }
21129 if (incoming.get(2)) {
21130 struct.from = new Revision();
21131 struct.from.read(iprot);
21132 struct.setFromRevisionIsSet(true);
21133 }
21134 if (incoming.get(3)) {
21135 struct.to = new Revision();
21136 struct.to.read(iprot);
21137 struct.setToRevisionIsSet(true);
21138 }
21139 if (incoming.get(4)) {
21140 struct.pathPattern = iprot.readString();
21141 struct.setPathPatternIsSet(true);
21142 }
21143 }
21144 }
21145
21146 }
21147
21148 public static class getDiffs_result implements org.apache.thrift.TBase<getDiffs_result, getDiffs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getDiffs_result> {
21149 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_result");
21150
21151 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
21152 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
21153
21154 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21155 static {
21156 schemes.put(StandardScheme.class, new getDiffs_resultStandardSchemeFactory());
21157 schemes.put(TupleScheme.class, new getDiffs_resultTupleSchemeFactory());
21158 }
21159
21160 public List<Change> success;
21161 public CentralDogmaException e;
21162
21163
21164 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21165 SUCCESS((short)0, "success"),
21166 E((short)1, "e");
21167
21168 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21169
21170 static {
21171 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21172 byName.put(field.getFieldName(), field);
21173 }
21174 }
21175
21176
21177
21178
21179 public static _Fields findByThriftId(int fieldId) {
21180 switch(fieldId) {
21181 case 0:
21182 return SUCCESS;
21183 case 1:
21184 return E;
21185 default:
21186 return null;
21187 }
21188 }
21189
21190
21191
21192
21193
21194 public static _Fields findByThriftIdOrThrow(int fieldId) {
21195 _Fields fields = findByThriftId(fieldId);
21196 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21197 return fields;
21198 }
21199
21200
21201
21202
21203 public static _Fields findByName(String name) {
21204 return byName.get(name);
21205 }
21206
21207 private final short _thriftId;
21208 private final String _fieldName;
21209
21210 _Fields(short thriftId, String fieldName) {
21211 _thriftId = thriftId;
21212 _fieldName = fieldName;
21213 }
21214
21215 public short getThriftFieldId() {
21216 return _thriftId;
21217 }
21218
21219 public String getFieldName() {
21220 return _fieldName;
21221 }
21222 }
21223
21224
21225 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21226 static {
21227 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21228 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21229 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
21230 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
21231 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
21232 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21233 metaDataMap = Collections.unmodifiableMap(tmpMap);
21234 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDiffs_result.class, metaDataMap);
21235 }
21236
21237 public getDiffs_result() {
21238 }
21239
21240 public getDiffs_result(
21241 List<Change> success,
21242 CentralDogmaException e)
21243 {
21244 this();
21245 this.success = success;
21246 this.e = e;
21247 }
21248
21249
21250
21251
21252 public getDiffs_result(getDiffs_result other) {
21253 if (other.isSetSuccess()) {
21254 List<Change> __this__success = new ArrayList<Change>(other.success.size());
21255 for (Change other_element : other.success) {
21256 __this__success.add(new Change(other_element));
21257 }
21258 this.success = __this__success;
21259 }
21260 if (other.isSetE()) {
21261 this.e = new CentralDogmaException(other.e);
21262 }
21263 }
21264
21265 public getDiffs_result deepCopy() {
21266 return new getDiffs_result(this);
21267 }
21268
21269 @Override
21270 public void clear() {
21271 this.success = null;
21272 this.e = null;
21273 }
21274
21275 public int getSuccessSize() {
21276 return (this.success == null) ? 0 : this.success.size();
21277 }
21278
21279 public java.util.Iterator<Change> getSuccessIterator() {
21280 return (this.success == null) ? null : this.success.iterator();
21281 }
21282
21283 public void addToSuccess(Change elem) {
21284 if (this.success == null) {
21285 this.success = new ArrayList<Change>();
21286 }
21287 this.success.add(elem);
21288 }
21289
21290 public List<Change> getSuccess() {
21291 return this.success;
21292 }
21293
21294 public getDiffs_result setSuccess(List<Change> success) {
21295 this.success = success;
21296 return this;
21297 }
21298
21299 public void unsetSuccess() {
21300 this.success = null;
21301 }
21302
21303
21304 public boolean isSetSuccess() {
21305 return this.success != null;
21306 }
21307
21308 public void setSuccessIsSet(boolean value) {
21309 if (!value) {
21310 this.success = null;
21311 }
21312 }
21313
21314 public CentralDogmaException getE() {
21315 return this.e;
21316 }
21317
21318 public getDiffs_result setE(CentralDogmaException e) {
21319 this.e = e;
21320 return this;
21321 }
21322
21323 public void unsetE() {
21324 this.e = null;
21325 }
21326
21327
21328 public boolean isSetE() {
21329 return this.e != null;
21330 }
21331
21332 public void setEIsSet(boolean value) {
21333 if (!value) {
21334 this.e = null;
21335 }
21336 }
21337
21338 public void setFieldValue(_Fields field, Object value) {
21339 switch (field) {
21340 case SUCCESS:
21341 if (value == null) {
21342 unsetSuccess();
21343 } else {
21344 setSuccess((List<Change>)value);
21345 }
21346 break;
21347
21348 case E:
21349 if (value == null) {
21350 unsetE();
21351 } else {
21352 setE((CentralDogmaException)value);
21353 }
21354 break;
21355
21356 }
21357 }
21358
21359 public Object getFieldValue(_Fields field) {
21360 switch (field) {
21361 case SUCCESS:
21362 return getSuccess();
21363
21364 case E:
21365 return getE();
21366
21367 }
21368 throw new IllegalStateException();
21369 }
21370
21371
21372 public boolean isSet(_Fields field) {
21373 if (field == null) {
21374 throw new IllegalArgumentException();
21375 }
21376
21377 switch (field) {
21378 case SUCCESS:
21379 return isSetSuccess();
21380 case E:
21381 return isSetE();
21382 }
21383 throw new IllegalStateException();
21384 }
21385
21386 @Override
21387 public boolean equals(Object that) {
21388 if (that == null)
21389 return false;
21390 if (that instanceof getDiffs_result)
21391 return this.equals((getDiffs_result)that);
21392 return false;
21393 }
21394
21395 public boolean equals(getDiffs_result that) {
21396 if (that == null)
21397 return false;
21398
21399 boolean this_present_success = true && this.isSetSuccess();
21400 boolean that_present_success = true && that.isSetSuccess();
21401 if (this_present_success || that_present_success) {
21402 if (!(this_present_success && that_present_success))
21403 return false;
21404 if (!this.success.equals(that.success))
21405 return false;
21406 }
21407
21408 boolean this_present_e = true && this.isSetE();
21409 boolean that_present_e = true && that.isSetE();
21410 if (this_present_e || that_present_e) {
21411 if (!(this_present_e && that_present_e))
21412 return false;
21413 if (!this.e.equals(that.e))
21414 return false;
21415 }
21416
21417 return true;
21418 }
21419
21420 @Override
21421 public int hashCode() {
21422 List<Object> list = new ArrayList<Object>();
21423
21424 boolean present_success = true && (isSetSuccess());
21425 list.add(present_success);
21426 if (present_success)
21427 list.add(success);
21428
21429 boolean present_e = true && (isSetE());
21430 list.add(present_e);
21431 if (present_e)
21432 list.add(e);
21433
21434 return list.hashCode();
21435 }
21436
21437 @Override
21438 public int compareTo(getDiffs_result other) {
21439 if (!getClass().equals(other.getClass())) {
21440 return getClass().getName().compareTo(other.getClass().getName());
21441 }
21442
21443 int lastComparison = 0;
21444
21445 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21446 if (lastComparison != 0) {
21447 return lastComparison;
21448 }
21449 if (isSetSuccess()) {
21450 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21451 if (lastComparison != 0) {
21452 return lastComparison;
21453 }
21454 }
21455 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
21456 if (lastComparison != 0) {
21457 return lastComparison;
21458 }
21459 if (isSetE()) {
21460 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
21461 if (lastComparison != 0) {
21462 return lastComparison;
21463 }
21464 }
21465 return 0;
21466 }
21467
21468 public _Fields fieldForId(int fieldId) {
21469 return _Fields.findByThriftId(fieldId);
21470 }
21471
21472 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21473 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21474 }
21475
21476 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21477 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21478 }
21479
21480 @Override
21481 public String toString() {
21482 StringBuilder sb = new StringBuilder("getDiffs_result(");
21483 boolean first = true;
21484
21485 sb.append("success:");
21486 if (this.success == null) {
21487 sb.append("null");
21488 } else {
21489 sb.append(this.success);
21490 }
21491 first = false;
21492 if (!first) sb.append(", ");
21493 sb.append("e:");
21494 if (this.e == null) {
21495 sb.append("null");
21496 } else {
21497 sb.append(this.e);
21498 }
21499 first = false;
21500 sb.append(")");
21501 return sb.toString();
21502 }
21503
21504 public void validate() throws org.apache.thrift.TException {
21505
21506
21507 }
21508
21509 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21510 try {
21511 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21512 } catch (org.apache.thrift.TException te) {
21513 throw new java.io.IOException(te);
21514 }
21515 }
21516
21517 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21518 try {
21519 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21520 } catch (org.apache.thrift.TException te) {
21521 throw new java.io.IOException(te);
21522 }
21523 }
21524
21525 private static class getDiffs_resultStandardSchemeFactory implements SchemeFactory {
21526 public getDiffs_resultStandardScheme getScheme() {
21527 return new getDiffs_resultStandardScheme();
21528 }
21529 }
21530
21531 private static class getDiffs_resultStandardScheme extends StandardScheme<getDiffs_result> {
21532
21533 public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_result struct) throws org.apache.thrift.TException {
21534 org.apache.thrift.protocol.TField schemeField;
21535 iprot.readStructBegin();
21536 while (true)
21537 {
21538 schemeField = iprot.readFieldBegin();
21539 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21540 break;
21541 }
21542 switch (schemeField.id) {
21543 case 0:
21544 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
21545 {
21546 org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();
21547 struct.success = new ArrayList<Change>(_list128.size);
21548 Change _elem129;
21549 for (int _i130 = 0; _i130 < _list128.size; ++_i130)
21550 {
21551 _elem129 = new Change();
21552 _elem129.read(iprot);
21553 struct.success.add(_elem129);
21554 }
21555 iprot.readListEnd();
21556 }
21557 struct.setSuccessIsSet(true);
21558 } else {
21559 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21560 }
21561 break;
21562 case 1:
21563 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21564 struct.e = new CentralDogmaException();
21565 struct.e.read(iprot);
21566 struct.setEIsSet(true);
21567 } else {
21568 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21569 }
21570 break;
21571 default:
21572 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21573 }
21574 iprot.readFieldEnd();
21575 }
21576 iprot.readStructEnd();
21577
21578
21579 struct.validate();
21580 }
21581
21582 public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_result struct) throws org.apache.thrift.TException {
21583 struct.validate();
21584
21585 oprot.writeStructBegin(STRUCT_DESC);
21586 if (struct.success != null) {
21587 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21588 {
21589 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
21590 for (Change _iter131 : struct.success)
21591 {
21592 _iter131.write(oprot);
21593 }
21594 oprot.writeListEnd();
21595 }
21596 oprot.writeFieldEnd();
21597 }
21598 if (struct.e != null) {
21599 oprot.writeFieldBegin(E_FIELD_DESC);
21600 struct.e.write(oprot);
21601 oprot.writeFieldEnd();
21602 }
21603 oprot.writeFieldStop();
21604 oprot.writeStructEnd();
21605 }
21606
21607 }
21608
21609 private static class getDiffs_resultTupleSchemeFactory implements SchemeFactory {
21610 public getDiffs_resultTupleScheme getScheme() {
21611 return new getDiffs_resultTupleScheme();
21612 }
21613 }
21614
21615 private static class getDiffs_resultTupleScheme extends TupleScheme<getDiffs_result> {
21616
21617 @Override
21618 public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException {
21619 TTupleProtocol oprot = (TTupleProtocol) prot;
21620 BitSet optionals = new BitSet();
21621 if (struct.isSetSuccess()) {
21622 optionals.set(0);
21623 }
21624 if (struct.isSetE()) {
21625 optionals.set(1);
21626 }
21627 oprot.writeBitSet(optionals, 2);
21628 if (struct.isSetSuccess()) {
21629 {
21630 oprot.writeI32(struct.success.size());
21631 for (Change _iter132 : struct.success)
21632 {
21633 _iter132.write(oprot);
21634 }
21635 }
21636 }
21637 if (struct.isSetE()) {
21638 struct.e.write(oprot);
21639 }
21640 }
21641
21642 @Override
21643 public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException {
21644 TTupleProtocol iprot = (TTupleProtocol) prot;
21645 BitSet incoming = iprot.readBitSet(2);
21646 if (incoming.get(0)) {
21647 {
21648 org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
21649 struct.success = new ArrayList<Change>(_list133.size);
21650 Change _elem134;
21651 for (int _i135 = 0; _i135 < _list133.size; ++_i135)
21652 {
21653 _elem134 = new Change();
21654 _elem134.read(iprot);
21655 struct.success.add(_elem134);
21656 }
21657 }
21658 struct.setSuccessIsSet(true);
21659 }
21660 if (incoming.get(1)) {
21661 struct.e = new CentralDogmaException();
21662 struct.e.read(iprot);
21663 struct.setEIsSet(true);
21664 }
21665 }
21666 }
21667
21668 }
21669
21670 public static class getPreviewDiffs_args implements org.apache.thrift.TBase<getPreviewDiffs_args, getPreviewDiffs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPreviewDiffs_args> {
21671 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_args");
21672
21673 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
21674 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
21675 private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
21676 private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)4);
21677
21678 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21679 static {
21680 schemes.put(StandardScheme.class, new getPreviewDiffs_argsStandardSchemeFactory());
21681 schemes.put(TupleScheme.class, new getPreviewDiffs_argsTupleSchemeFactory());
21682 }
21683
21684 public String projectName;
21685 public String repositoryName;
21686 public Revision baseRevision;
21687 public List<Change> changes;
21688
21689
21690 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21691 PROJECT_NAME((short)1, "projectName"),
21692 REPOSITORY_NAME((short)2, "repositoryName"),
21693 BASE_REVISION((short)3, "baseRevision"),
21694 CHANGES((short)4, "changes");
21695
21696 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21697
21698 static {
21699 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21700 byName.put(field.getFieldName(), field);
21701 }
21702 }
21703
21704
21705
21706
21707 public static _Fields findByThriftId(int fieldId) {
21708 switch(fieldId) {
21709 case 1:
21710 return PROJECT_NAME;
21711 case 2:
21712 return REPOSITORY_NAME;
21713 case 3:
21714 return BASE_REVISION;
21715 case 4:
21716 return CHANGES;
21717 default:
21718 return null;
21719 }
21720 }
21721
21722
21723
21724
21725
21726 public static _Fields findByThriftIdOrThrow(int fieldId) {
21727 _Fields fields = findByThriftId(fieldId);
21728 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21729 return fields;
21730 }
21731
21732
21733
21734
21735 public static _Fields findByName(String name) {
21736 return byName.get(name);
21737 }
21738
21739 private final short _thriftId;
21740 private final String _fieldName;
21741
21742 _Fields(short thriftId, String fieldName) {
21743 _thriftId = thriftId;
21744 _fieldName = fieldName;
21745 }
21746
21747 public short getThriftFieldId() {
21748 return _thriftId;
21749 }
21750
21751 public String getFieldName() {
21752 return _fieldName;
21753 }
21754 }
21755
21756
21757 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21758 static {
21759 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21760 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
21761 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21762 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
21763 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21764 tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
21765 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
21766 tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT,
21767 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
21768 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
21769 metaDataMap = Collections.unmodifiableMap(tmpMap);
21770 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviewDiffs_args.class, metaDataMap);
21771 }
21772
21773 public getPreviewDiffs_args() {
21774 }
21775
21776 public getPreviewDiffs_args(
21777 String projectName,
21778 String repositoryName,
21779 Revision baseRevision,
21780 List<Change> changes)
21781 {
21782 this();
21783 this.projectName = projectName;
21784 this.repositoryName = repositoryName;
21785 this.baseRevision = baseRevision;
21786 this.changes = changes;
21787 }
21788
21789
21790
21791
21792 public getPreviewDiffs_args(getPreviewDiffs_args other) {
21793 if (other.isSetProjectName()) {
21794 this.projectName = other.projectName;
21795 }
21796 if (other.isSetRepositoryName()) {
21797 this.repositoryName = other.repositoryName;
21798 }
21799 if (other.isSetBaseRevision()) {
21800 this.baseRevision = new Revision(other.baseRevision);
21801 }
21802 if (other.isSetChanges()) {
21803 List<Change> __this__changes = new ArrayList<Change>(other.changes.size());
21804 for (Change other_element : other.changes) {
21805 __this__changes.add(new Change(other_element));
21806 }
21807 this.changes = __this__changes;
21808 }
21809 }
21810
21811 public getPreviewDiffs_args deepCopy() {
21812 return new getPreviewDiffs_args(this);
21813 }
21814
21815 @Override
21816 public void clear() {
21817 this.projectName = null;
21818 this.repositoryName = null;
21819 this.baseRevision = null;
21820 this.changes = null;
21821 }
21822
21823 public String getProjectName() {
21824 return this.projectName;
21825 }
21826
21827 public getPreviewDiffs_args setProjectName(String projectName) {
21828 this.projectName = projectName;
21829 return this;
21830 }
21831
21832 public void unsetProjectName() {
21833 this.projectName = null;
21834 }
21835
21836
21837 public boolean isSetProjectName() {
21838 return this.projectName != null;
21839 }
21840
21841 public void setProjectNameIsSet(boolean value) {
21842 if (!value) {
21843 this.projectName = null;
21844 }
21845 }
21846
21847 public String getRepositoryName() {
21848 return this.repositoryName;
21849 }
21850
21851 public getPreviewDiffs_args setRepositoryName(String repositoryName) {
21852 this.repositoryName = repositoryName;
21853 return this;
21854 }
21855
21856 public void unsetRepositoryName() {
21857 this.repositoryName = null;
21858 }
21859
21860
21861 public boolean isSetRepositoryName() {
21862 return this.repositoryName != null;
21863 }
21864
21865 public void setRepositoryNameIsSet(boolean value) {
21866 if (!value) {
21867 this.repositoryName = null;
21868 }
21869 }
21870
21871 public Revision getBaseRevision() {
21872 return this.baseRevision;
21873 }
21874
21875 public getPreviewDiffs_args setBaseRevision(Revision baseRevision) {
21876 this.baseRevision = baseRevision;
21877 return this;
21878 }
21879
21880 public void unsetBaseRevision() {
21881 this.baseRevision = null;
21882 }
21883
21884
21885 public boolean isSetBaseRevision() {
21886 return this.baseRevision != null;
21887 }
21888
21889 public void setBaseRevisionIsSet(boolean value) {
21890 if (!value) {
21891 this.baseRevision = null;
21892 }
21893 }
21894
21895 public int getChangesSize() {
21896 return (this.changes == null) ? 0 : this.changes.size();
21897 }
21898
21899 public java.util.Iterator<Change> getChangesIterator() {
21900 return (this.changes == null) ? null : this.changes.iterator();
21901 }
21902
21903 public void addToChanges(Change elem) {
21904 if (this.changes == null) {
21905 this.changes = new ArrayList<Change>();
21906 }
21907 this.changes.add(elem);
21908 }
21909
21910 public List<Change> getChanges() {
21911 return this.changes;
21912 }
21913
21914 public getPreviewDiffs_args setChanges(List<Change> changes) {
21915 this.changes = changes;
21916 return this;
21917 }
21918
21919 public void unsetChanges() {
21920 this.changes = null;
21921 }
21922
21923
21924 public boolean isSetChanges() {
21925 return this.changes != null;
21926 }
21927
21928 public void setChangesIsSet(boolean value) {
21929 if (!value) {
21930 this.changes = null;
21931 }
21932 }
21933
21934 public void setFieldValue(_Fields field, Object value) {
21935 switch (field) {
21936 case PROJECT_NAME:
21937 if (value == null) {
21938 unsetProjectName();
21939 } else {
21940 setProjectName((String)value);
21941 }
21942 break;
21943
21944 case REPOSITORY_NAME:
21945 if (value == null) {
21946 unsetRepositoryName();
21947 } else {
21948 setRepositoryName((String)value);
21949 }
21950 break;
21951
21952 case BASE_REVISION:
21953 if (value == null) {
21954 unsetBaseRevision();
21955 } else {
21956 setBaseRevision((Revision)value);
21957 }
21958 break;
21959
21960 case CHANGES:
21961 if (value == null) {
21962 unsetChanges();
21963 } else {
21964 setChanges((List<Change>)value);
21965 }
21966 break;
21967
21968 }
21969 }
21970
21971 public Object getFieldValue(_Fields field) {
21972 switch (field) {
21973 case PROJECT_NAME:
21974 return getProjectName();
21975
21976 case REPOSITORY_NAME:
21977 return getRepositoryName();
21978
21979 case BASE_REVISION:
21980 return getBaseRevision();
21981
21982 case CHANGES:
21983 return getChanges();
21984
21985 }
21986 throw new IllegalStateException();
21987 }
21988
21989
21990 public boolean isSet(_Fields field) {
21991 if (field == null) {
21992 throw new IllegalArgumentException();
21993 }
21994
21995 switch (field) {
21996 case PROJECT_NAME:
21997 return isSetProjectName();
21998 case REPOSITORY_NAME:
21999 return isSetRepositoryName();
22000 case BASE_REVISION:
22001 return isSetBaseRevision();
22002 case CHANGES:
22003 return isSetChanges();
22004 }
22005 throw new IllegalStateException();
22006 }
22007
22008 @Override
22009 public boolean equals(Object that) {
22010 if (that == null)
22011 return false;
22012 if (that instanceof getPreviewDiffs_args)
22013 return this.equals((getPreviewDiffs_args)that);
22014 return false;
22015 }
22016
22017 public boolean equals(getPreviewDiffs_args that) {
22018 if (that == null)
22019 return false;
22020
22021 boolean this_present_projectName = true && this.isSetProjectName();
22022 boolean that_present_projectName = true && that.isSetProjectName();
22023 if (this_present_projectName || that_present_projectName) {
22024 if (!(this_present_projectName && that_present_projectName))
22025 return false;
22026 if (!this.projectName.equals(that.projectName))
22027 return false;
22028 }
22029
22030 boolean this_present_repositoryName = true && this.isSetRepositoryName();
22031 boolean that_present_repositoryName = true && that.isSetRepositoryName();
22032 if (this_present_repositoryName || that_present_repositoryName) {
22033 if (!(this_present_repositoryName && that_present_repositoryName))
22034 return false;
22035 if (!this.repositoryName.equals(that.repositoryName))
22036 return false;
22037 }
22038
22039 boolean this_present_baseRevision = true && this.isSetBaseRevision();
22040 boolean that_present_baseRevision = true && that.isSetBaseRevision();
22041 if (this_present_baseRevision || that_present_baseRevision) {
22042 if (!(this_present_baseRevision && that_present_baseRevision))
22043 return false;
22044 if (!this.baseRevision.equals(that.baseRevision))
22045 return false;
22046 }
22047
22048 boolean this_present_changes = true && this.isSetChanges();
22049 boolean that_present_changes = true && that.isSetChanges();
22050 if (this_present_changes || that_present_changes) {
22051 if (!(this_present_changes && that_present_changes))
22052 return false;
22053 if (!this.changes.equals(that.changes))
22054 return false;
22055 }
22056
22057 return true;
22058 }
22059
22060 @Override
22061 public int hashCode() {
22062 List<Object> list = new ArrayList<Object>();
22063
22064 boolean present_projectName = true && (isSetProjectName());
22065 list.add(present_projectName);
22066 if (present_projectName)
22067 list.add(projectName);
22068
22069 boolean present_repositoryName = true && (isSetRepositoryName());
22070 list.add(present_repositoryName);
22071 if (present_repositoryName)
22072 list.add(repositoryName);
22073
22074 boolean present_baseRevision = true && (isSetBaseRevision());
22075 list.add(present_baseRevision);
22076 if (present_baseRevision)
22077 list.add(baseRevision);
22078
22079 boolean present_changes = true && (isSetChanges());
22080 list.add(present_changes);
22081 if (present_changes)
22082 list.add(changes);
22083
22084 return list.hashCode();
22085 }
22086
22087 @Override
22088 public int compareTo(getPreviewDiffs_args other) {
22089 if (!getClass().equals(other.getClass())) {
22090 return getClass().getName().compareTo(other.getClass().getName());
22091 }
22092
22093 int lastComparison = 0;
22094
22095 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
22096 if (lastComparison != 0) {
22097 return lastComparison;
22098 }
22099 if (isSetProjectName()) {
22100 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
22101 if (lastComparison != 0) {
22102 return lastComparison;
22103 }
22104 }
22105 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
22106 if (lastComparison != 0) {
22107 return lastComparison;
22108 }
22109 if (isSetRepositoryName()) {
22110 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
22111 if (lastComparison != 0) {
22112 return lastComparison;
22113 }
22114 }
22115 lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision());
22116 if (lastComparison != 0) {
22117 return lastComparison;
22118 }
22119 if (isSetBaseRevision()) {
22120 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision);
22121 if (lastComparison != 0) {
22122 return lastComparison;
22123 }
22124 }
22125 lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges());
22126 if (lastComparison != 0) {
22127 return lastComparison;
22128 }
22129 if (isSetChanges()) {
22130 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes);
22131 if (lastComparison != 0) {
22132 return lastComparison;
22133 }
22134 }
22135 return 0;
22136 }
22137
22138 public _Fields fieldForId(int fieldId) {
22139 return _Fields.findByThriftId(fieldId);
22140 }
22141
22142 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22143 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22144 }
22145
22146 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22147 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22148 }
22149
22150 @Override
22151 public String toString() {
22152 StringBuilder sb = new StringBuilder("getPreviewDiffs_args(");
22153 boolean first = true;
22154
22155 sb.append("projectName:");
22156 if (this.projectName == null) {
22157 sb.append("null");
22158 } else {
22159 sb.append(this.projectName);
22160 }
22161 first = false;
22162 if (!first) sb.append(", ");
22163 sb.append("repositoryName:");
22164 if (this.repositoryName == null) {
22165 sb.append("null");
22166 } else {
22167 sb.append(this.repositoryName);
22168 }
22169 first = false;
22170 if (!first) sb.append(", ");
22171 sb.append("baseRevision:");
22172 if (this.baseRevision == null) {
22173 sb.append("null");
22174 } else {
22175 sb.append(this.baseRevision);
22176 }
22177 first = false;
22178 if (!first) sb.append(", ");
22179 sb.append("changes:");
22180 if (this.changes == null) {
22181 sb.append("null");
22182 } else {
22183 sb.append(this.changes);
22184 }
22185 first = false;
22186 sb.append(")");
22187 return sb.toString();
22188 }
22189
22190 public void validate() throws org.apache.thrift.TException {
22191
22192
22193 if (baseRevision != null) {
22194 baseRevision.validate();
22195 }
22196 }
22197
22198 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22199 try {
22200 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22201 } catch (org.apache.thrift.TException te) {
22202 throw new java.io.IOException(te);
22203 }
22204 }
22205
22206 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22207 try {
22208 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22209 } catch (org.apache.thrift.TException te) {
22210 throw new java.io.IOException(te);
22211 }
22212 }
22213
22214 private static class getPreviewDiffs_argsStandardSchemeFactory implements SchemeFactory {
22215 public getPreviewDiffs_argsStandardScheme getScheme() {
22216 return new getPreviewDiffs_argsStandardScheme();
22217 }
22218 }
22219
22220 private static class getPreviewDiffs_argsStandardScheme extends StandardScheme<getPreviewDiffs_args> {
22221
22222 public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
22223 org.apache.thrift.protocol.TField schemeField;
22224 iprot.readStructBegin();
22225 while (true)
22226 {
22227 schemeField = iprot.readFieldBegin();
22228 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22229 break;
22230 }
22231 switch (schemeField.id) {
22232 case 1:
22233 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22234 struct.projectName = iprot.readString();
22235 struct.setProjectNameIsSet(true);
22236 } else {
22237 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22238 }
22239 break;
22240 case 2:
22241 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22242 struct.repositoryName = iprot.readString();
22243 struct.setRepositoryNameIsSet(true);
22244 } else {
22245 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22246 }
22247 break;
22248 case 3:
22249 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22250 struct.baseRevision = new Revision();
22251 struct.baseRevision.read(iprot);
22252 struct.setBaseRevisionIsSet(true);
22253 } else {
22254 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22255 }
22256 break;
22257 case 4:
22258 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22259 {
22260 org.apache.thrift.protocol.TList _list136 = iprot.readListBegin();
22261 struct.changes = new ArrayList<Change>(_list136.size);
22262 Change _elem137;
22263 for (int _i138 = 0; _i138 < _list136.size; ++_i138)
22264 {
22265 _elem137 = new Change();
22266 _elem137.read(iprot);
22267 struct.changes.add(_elem137);
22268 }
22269 iprot.readListEnd();
22270 }
22271 struct.setChangesIsSet(true);
22272 } else {
22273 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22274 }
22275 break;
22276 default:
22277 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22278 }
22279 iprot.readFieldEnd();
22280 }
22281 iprot.readStructEnd();
22282
22283
22284 struct.validate();
22285 }
22286
22287 public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
22288 struct.validate();
22289
22290 oprot.writeStructBegin(STRUCT_DESC);
22291 if (struct.projectName != null) {
22292 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
22293 oprot.writeString(struct.projectName);
22294 oprot.writeFieldEnd();
22295 }
22296 if (struct.repositoryName != null) {
22297 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
22298 oprot.writeString(struct.repositoryName);
22299 oprot.writeFieldEnd();
22300 }
22301 if (struct.baseRevision != null) {
22302 oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC);
22303 struct.baseRevision.write(oprot);
22304 oprot.writeFieldEnd();
22305 }
22306 if (struct.changes != null) {
22307 oprot.writeFieldBegin(CHANGES_FIELD_DESC);
22308 {
22309 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size()));
22310 for (Change _iter139 : struct.changes)
22311 {
22312 _iter139.write(oprot);
22313 }
22314 oprot.writeListEnd();
22315 }
22316 oprot.writeFieldEnd();
22317 }
22318 oprot.writeFieldStop();
22319 oprot.writeStructEnd();
22320 }
22321
22322 }
22323
22324 private static class getPreviewDiffs_argsTupleSchemeFactory implements SchemeFactory {
22325 public getPreviewDiffs_argsTupleScheme getScheme() {
22326 return new getPreviewDiffs_argsTupleScheme();
22327 }
22328 }
22329
22330 private static class getPreviewDiffs_argsTupleScheme extends TupleScheme<getPreviewDiffs_args> {
22331
22332 @Override
22333 public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
22334 TTupleProtocol oprot = (TTupleProtocol) prot;
22335 BitSet optionals = new BitSet();
22336 if (struct.isSetProjectName()) {
22337 optionals.set(0);
22338 }
22339 if (struct.isSetRepositoryName()) {
22340 optionals.set(1);
22341 }
22342 if (struct.isSetBaseRevision()) {
22343 optionals.set(2);
22344 }
22345 if (struct.isSetChanges()) {
22346 optionals.set(3);
22347 }
22348 oprot.writeBitSet(optionals, 4);
22349 if (struct.isSetProjectName()) {
22350 oprot.writeString(struct.projectName);
22351 }
22352 if (struct.isSetRepositoryName()) {
22353 oprot.writeString(struct.repositoryName);
22354 }
22355 if (struct.isSetBaseRevision()) {
22356 struct.baseRevision.write(oprot);
22357 }
22358 if (struct.isSetChanges()) {
22359 {
22360 oprot.writeI32(struct.changes.size());
22361 for (Change _iter140 : struct.changes)
22362 {
22363 _iter140.write(oprot);
22364 }
22365 }
22366 }
22367 }
22368
22369 @Override
22370 public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException {
22371 TTupleProtocol iprot = (TTupleProtocol) prot;
22372 BitSet incoming = iprot.readBitSet(4);
22373 if (incoming.get(0)) {
22374 struct.projectName = iprot.readString();
22375 struct.setProjectNameIsSet(true);
22376 }
22377 if (incoming.get(1)) {
22378 struct.repositoryName = iprot.readString();
22379 struct.setRepositoryNameIsSet(true);
22380 }
22381 if (incoming.get(2)) {
22382 struct.baseRevision = new Revision();
22383 struct.baseRevision.read(iprot);
22384 struct.setBaseRevisionIsSet(true);
22385 }
22386 if (incoming.get(3)) {
22387 {
22388 org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
22389 struct.changes = new ArrayList<Change>(_list141.size);
22390 Change _elem142;
22391 for (int _i143 = 0; _i143 < _list141.size; ++_i143)
22392 {
22393 _elem142 = new Change();
22394 _elem142.read(iprot);
22395 struct.changes.add(_elem142);
22396 }
22397 }
22398 struct.setChangesIsSet(true);
22399 }
22400 }
22401 }
22402
22403 }
22404
22405 public static class getPreviewDiffs_result implements org.apache.thrift.TBase<getPreviewDiffs_result, getPreviewDiffs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPreviewDiffs_result> {
22406 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_result");
22407
22408 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
22409 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22410
22411 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22412 static {
22413 schemes.put(StandardScheme.class, new getPreviewDiffs_resultStandardSchemeFactory());
22414 schemes.put(TupleScheme.class, new getPreviewDiffs_resultTupleSchemeFactory());
22415 }
22416
22417 public List<Change> success;
22418 public CentralDogmaException e;
22419
22420
22421 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22422 SUCCESS((short)0, "success"),
22423 E((short)1, "e");
22424
22425 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22426
22427 static {
22428 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22429 byName.put(field.getFieldName(), field);
22430 }
22431 }
22432
22433
22434
22435
22436 public static _Fields findByThriftId(int fieldId) {
22437 switch(fieldId) {
22438 case 0:
22439 return SUCCESS;
22440 case 1:
22441 return E;
22442 default:
22443 return null;
22444 }
22445 }
22446
22447
22448
22449
22450
22451 public static _Fields findByThriftIdOrThrow(int fieldId) {
22452 _Fields fields = findByThriftId(fieldId);
22453 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22454 return fields;
22455 }
22456
22457
22458
22459
22460 public static _Fields findByName(String name) {
22461 return byName.get(name);
22462 }
22463
22464 private final short _thriftId;
22465 private final String _fieldName;
22466
22467 _Fields(short thriftId, String fieldName) {
22468 _thriftId = thriftId;
22469 _fieldName = fieldName;
22470 }
22471
22472 public short getThriftFieldId() {
22473 return _thriftId;
22474 }
22475
22476 public String getFieldName() {
22477 return _fieldName;
22478 }
22479 }
22480
22481
22482 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22483 static {
22484 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22485 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22486 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
22487 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
22488 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
22489 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22490 metaDataMap = Collections.unmodifiableMap(tmpMap);
22491 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviewDiffs_result.class, metaDataMap);
22492 }
22493
22494 public getPreviewDiffs_result() {
22495 }
22496
22497 public getPreviewDiffs_result(
22498 List<Change> success,
22499 CentralDogmaException e)
22500 {
22501 this();
22502 this.success = success;
22503 this.e = e;
22504 }
22505
22506
22507
22508
22509 public getPreviewDiffs_result(getPreviewDiffs_result other) {
22510 if (other.isSetSuccess()) {
22511 List<Change> __this__success = new ArrayList<Change>(other.success.size());
22512 for (Change other_element : other.success) {
22513 __this__success.add(new Change(other_element));
22514 }
22515 this.success = __this__success;
22516 }
22517 if (other.isSetE()) {
22518 this.e = new CentralDogmaException(other.e);
22519 }
22520 }
22521
22522 public getPreviewDiffs_result deepCopy() {
22523 return new getPreviewDiffs_result(this);
22524 }
22525
22526 @Override
22527 public void clear() {
22528 this.success = null;
22529 this.e = null;
22530 }
22531
22532 public int getSuccessSize() {
22533 return (this.success == null) ? 0 : this.success.size();
22534 }
22535
22536 public java.util.Iterator<Change> getSuccessIterator() {
22537 return (this.success == null) ? null : this.success.iterator();
22538 }
22539
22540 public void addToSuccess(Change elem) {
22541 if (this.success == null) {
22542 this.success = new ArrayList<Change>();
22543 }
22544 this.success.add(elem);
22545 }
22546
22547 public List<Change> getSuccess() {
22548 return this.success;
22549 }
22550
22551 public getPreviewDiffs_result setSuccess(List<Change> success) {
22552 this.success = success;
22553 return this;
22554 }
22555
22556 public void unsetSuccess() {
22557 this.success = null;
22558 }
22559
22560
22561 public boolean isSetSuccess() {
22562 return this.success != null;
22563 }
22564
22565 public void setSuccessIsSet(boolean value) {
22566 if (!value) {
22567 this.success = null;
22568 }
22569 }
22570
22571 public CentralDogmaException getE() {
22572 return this.e;
22573 }
22574
22575 public getPreviewDiffs_result setE(CentralDogmaException e) {
22576 this.e = e;
22577 return this;
22578 }
22579
22580 public void unsetE() {
22581 this.e = null;
22582 }
22583
22584
22585 public boolean isSetE() {
22586 return this.e != null;
22587 }
22588
22589 public void setEIsSet(boolean value) {
22590 if (!value) {
22591 this.e = null;
22592 }
22593 }
22594
22595 public void setFieldValue(_Fields field, Object value) {
22596 switch (field) {
22597 case SUCCESS:
22598 if (value == null) {
22599 unsetSuccess();
22600 } else {
22601 setSuccess((List<Change>)value);
22602 }
22603 break;
22604
22605 case E:
22606 if (value == null) {
22607 unsetE();
22608 } else {
22609 setE((CentralDogmaException)value);
22610 }
22611 break;
22612
22613 }
22614 }
22615
22616 public Object getFieldValue(_Fields field) {
22617 switch (field) {
22618 case SUCCESS:
22619 return getSuccess();
22620
22621 case E:
22622 return getE();
22623
22624 }
22625 throw new IllegalStateException();
22626 }
22627
22628
22629 public boolean isSet(_Fields field) {
22630 if (field == null) {
22631 throw new IllegalArgumentException();
22632 }
22633
22634 switch (field) {
22635 case SUCCESS:
22636 return isSetSuccess();
22637 case E:
22638 return isSetE();
22639 }
22640 throw new IllegalStateException();
22641 }
22642
22643 @Override
22644 public boolean equals(Object that) {
22645 if (that == null)
22646 return false;
22647 if (that instanceof getPreviewDiffs_result)
22648 return this.equals((getPreviewDiffs_result)that);
22649 return false;
22650 }
22651
22652 public boolean equals(getPreviewDiffs_result that) {
22653 if (that == null)
22654 return false;
22655
22656 boolean this_present_success = true && this.isSetSuccess();
22657 boolean that_present_success = true && that.isSetSuccess();
22658 if (this_present_success || that_present_success) {
22659 if (!(this_present_success && that_present_success))
22660 return false;
22661 if (!this.success.equals(that.success))
22662 return false;
22663 }
22664
22665 boolean this_present_e = true && this.isSetE();
22666 boolean that_present_e = true && that.isSetE();
22667 if (this_present_e || that_present_e) {
22668 if (!(this_present_e && that_present_e))
22669 return false;
22670 if (!this.e.equals(that.e))
22671 return false;
22672 }
22673
22674 return true;
22675 }
22676
22677 @Override
22678 public int hashCode() {
22679 List<Object> list = new ArrayList<Object>();
22680
22681 boolean present_success = true && (isSetSuccess());
22682 list.add(present_success);
22683 if (present_success)
22684 list.add(success);
22685
22686 boolean present_e = true && (isSetE());
22687 list.add(present_e);
22688 if (present_e)
22689 list.add(e);
22690
22691 return list.hashCode();
22692 }
22693
22694 @Override
22695 public int compareTo(getPreviewDiffs_result other) {
22696 if (!getClass().equals(other.getClass())) {
22697 return getClass().getName().compareTo(other.getClass().getName());
22698 }
22699
22700 int lastComparison = 0;
22701
22702 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22703 if (lastComparison != 0) {
22704 return lastComparison;
22705 }
22706 if (isSetSuccess()) {
22707 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22708 if (lastComparison != 0) {
22709 return lastComparison;
22710 }
22711 }
22712 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
22713 if (lastComparison != 0) {
22714 return lastComparison;
22715 }
22716 if (isSetE()) {
22717 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
22718 if (lastComparison != 0) {
22719 return lastComparison;
22720 }
22721 }
22722 return 0;
22723 }
22724
22725 public _Fields fieldForId(int fieldId) {
22726 return _Fields.findByThriftId(fieldId);
22727 }
22728
22729 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22730 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22731 }
22732
22733 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22734 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22735 }
22736
22737 @Override
22738 public String toString() {
22739 StringBuilder sb = new StringBuilder("getPreviewDiffs_result(");
22740 boolean first = true;
22741
22742 sb.append("success:");
22743 if (this.success == null) {
22744 sb.append("null");
22745 } else {
22746 sb.append(this.success);
22747 }
22748 first = false;
22749 if (!first) sb.append(", ");
22750 sb.append("e:");
22751 if (this.e == null) {
22752 sb.append("null");
22753 } else {
22754 sb.append(this.e);
22755 }
22756 first = false;
22757 sb.append(")");
22758 return sb.toString();
22759 }
22760
22761 public void validate() throws org.apache.thrift.TException {
22762
22763
22764 }
22765
22766 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22767 try {
22768 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22769 } catch (org.apache.thrift.TException te) {
22770 throw new java.io.IOException(te);
22771 }
22772 }
22773
22774 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22775 try {
22776 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22777 } catch (org.apache.thrift.TException te) {
22778 throw new java.io.IOException(te);
22779 }
22780 }
22781
22782 private static class getPreviewDiffs_resultStandardSchemeFactory implements SchemeFactory {
22783 public getPreviewDiffs_resultStandardScheme getScheme() {
22784 return new getPreviewDiffs_resultStandardScheme();
22785 }
22786 }
22787
22788 private static class getPreviewDiffs_resultStandardScheme extends StandardScheme<getPreviewDiffs_result> {
22789
22790 public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
22791 org.apache.thrift.protocol.TField schemeField;
22792 iprot.readStructBegin();
22793 while (true)
22794 {
22795 schemeField = iprot.readFieldBegin();
22796 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22797 break;
22798 }
22799 switch (schemeField.id) {
22800 case 0:
22801 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22802 {
22803 org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
22804 struct.success = new ArrayList<Change>(_list144.size);
22805 Change _elem145;
22806 for (int _i146 = 0; _i146 < _list144.size; ++_i146)
22807 {
22808 _elem145 = new Change();
22809 _elem145.read(iprot);
22810 struct.success.add(_elem145);
22811 }
22812 iprot.readListEnd();
22813 }
22814 struct.setSuccessIsSet(true);
22815 } else {
22816 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22817 }
22818 break;
22819 case 1:
22820 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22821 struct.e = new CentralDogmaException();
22822 struct.e.read(iprot);
22823 struct.setEIsSet(true);
22824 } else {
22825 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22826 }
22827 break;
22828 default:
22829 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22830 }
22831 iprot.readFieldEnd();
22832 }
22833 iprot.readStructEnd();
22834
22835
22836 struct.validate();
22837 }
22838
22839 public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
22840 struct.validate();
22841
22842 oprot.writeStructBegin(STRUCT_DESC);
22843 if (struct.success != null) {
22844 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22845 {
22846 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
22847 for (Change _iter147 : struct.success)
22848 {
22849 _iter147.write(oprot);
22850 }
22851 oprot.writeListEnd();
22852 }
22853 oprot.writeFieldEnd();
22854 }
22855 if (struct.e != null) {
22856 oprot.writeFieldBegin(E_FIELD_DESC);
22857 struct.e.write(oprot);
22858 oprot.writeFieldEnd();
22859 }
22860 oprot.writeFieldStop();
22861 oprot.writeStructEnd();
22862 }
22863
22864 }
22865
22866 private static class getPreviewDiffs_resultTupleSchemeFactory implements SchemeFactory {
22867 public getPreviewDiffs_resultTupleScheme getScheme() {
22868 return new getPreviewDiffs_resultTupleScheme();
22869 }
22870 }
22871
22872 private static class getPreviewDiffs_resultTupleScheme extends TupleScheme<getPreviewDiffs_result> {
22873
22874 @Override
22875 public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
22876 TTupleProtocol oprot = (TTupleProtocol) prot;
22877 BitSet optionals = new BitSet();
22878 if (struct.isSetSuccess()) {
22879 optionals.set(0);
22880 }
22881 if (struct.isSetE()) {
22882 optionals.set(1);
22883 }
22884 oprot.writeBitSet(optionals, 2);
22885 if (struct.isSetSuccess()) {
22886 {
22887 oprot.writeI32(struct.success.size());
22888 for (Change _iter148 : struct.success)
22889 {
22890 _iter148.write(oprot);
22891 }
22892 }
22893 }
22894 if (struct.isSetE()) {
22895 struct.e.write(oprot);
22896 }
22897 }
22898
22899 @Override
22900 public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException {
22901 TTupleProtocol iprot = (TTupleProtocol) prot;
22902 BitSet incoming = iprot.readBitSet(2);
22903 if (incoming.get(0)) {
22904 {
22905 org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
22906 struct.success = new ArrayList<Change>(_list149.size);
22907 Change _elem150;
22908 for (int _i151 = 0; _i151 < _list149.size; ++_i151)
22909 {
22910 _elem150 = new Change();
22911 _elem150.read(iprot);
22912 struct.success.add(_elem150);
22913 }
22914 }
22915 struct.setSuccessIsSet(true);
22916 }
22917 if (incoming.get(1)) {
22918 struct.e = new CentralDogmaException();
22919 struct.e.read(iprot);
22920 struct.setEIsSet(true);
22921 }
22922 }
22923 }
22924
22925 }
22926
22927 public static class push_args implements org.apache.thrift.TBase<push_args, push_args._Fields>, java.io.Serializable, Cloneable, Comparable<push_args> {
22928 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_args");
22929
22930 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
22931 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
22932 private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
22933 private static final org.apache.thrift.protocol.TField AUTHOR_FIELD_DESC = new org.apache.thrift.protocol.TField("author", org.apache.thrift.protocol.TType.STRUCT, (short)4);
22934 private static final org.apache.thrift.protocol.TField SUMMARY_FIELD_DESC = new org.apache.thrift.protocol.TField("summary", org.apache.thrift.protocol.TType.STRING, (short)5);
22935 private static final org.apache.thrift.protocol.TField DETAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("detail", org.apache.thrift.protocol.TType.STRUCT, (short)6);
22936 private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)7);
22937
22938 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22939 static {
22940 schemes.put(StandardScheme.class, new push_argsStandardSchemeFactory());
22941 schemes.put(TupleScheme.class, new push_argsTupleSchemeFactory());
22942 }
22943
22944 public String projectName;
22945 public String repositoryName;
22946 public Revision baseRevision;
22947 public Author author;
22948 public String summary;
22949 public Comment detail;
22950 public List<Change> changes;
22951
22952
22953 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22954 PROJECT_NAME((short)1, "projectName"),
22955 REPOSITORY_NAME((short)2, "repositoryName"),
22956 BASE_REVISION((short)3, "baseRevision"),
22957 AUTHOR((short)4, "author"),
22958 SUMMARY((short)5, "summary"),
22959 DETAIL((short)6, "detail"),
22960 CHANGES((short)7, "changes");
22961
22962 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22963
22964 static {
22965 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22966 byName.put(field.getFieldName(), field);
22967 }
22968 }
22969
22970
22971
22972
22973 public static _Fields findByThriftId(int fieldId) {
22974 switch(fieldId) {
22975 case 1:
22976 return PROJECT_NAME;
22977 case 2:
22978 return REPOSITORY_NAME;
22979 case 3:
22980 return BASE_REVISION;
22981 case 4:
22982 return AUTHOR;
22983 case 5:
22984 return SUMMARY;
22985 case 6:
22986 return DETAIL;
22987 case 7:
22988 return CHANGES;
22989 default:
22990 return null;
22991 }
22992 }
22993
22994
22995
22996
22997
22998 public static _Fields findByThriftIdOrThrow(int fieldId) {
22999 _Fields fields = findByThriftId(fieldId);
23000 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23001 return fields;
23002 }
23003
23004
23005
23006
23007 public static _Fields findByName(String name) {
23008 return byName.get(name);
23009 }
23010
23011 private final short _thriftId;
23012 private final String _fieldName;
23013
23014 _Fields(short thriftId, String fieldName) {
23015 _thriftId = thriftId;
23016 _fieldName = fieldName;
23017 }
23018
23019 public short getThriftFieldId() {
23020 return _thriftId;
23021 }
23022
23023 public String getFieldName() {
23024 return _fieldName;
23025 }
23026 }
23027
23028
23029 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23030 static {
23031 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23032 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
23033 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23034 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
23035 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23036 tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
23037 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
23038 tmpMap.put(_Fields.AUTHOR, new org.apache.thrift.meta_data.FieldMetaData("author", org.apache.thrift.TFieldRequirementType.DEFAULT,
23039 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Author.class)));
23040 tmpMap.put(_Fields.SUMMARY, new org.apache.thrift.meta_data.FieldMetaData("summary", org.apache.thrift.TFieldRequirementType.DEFAULT,
23041 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23042 tmpMap.put(_Fields.DETAIL, new org.apache.thrift.meta_data.FieldMetaData("detail", org.apache.thrift.TFieldRequirementType.DEFAULT,
23043 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Comment.class)));
23044 tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT,
23045 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
23046 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class))));
23047 metaDataMap = Collections.unmodifiableMap(tmpMap);
23048 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(push_args.class, metaDataMap);
23049 }
23050
23051 public push_args() {
23052 }
23053
23054 public push_args(
23055 String projectName,
23056 String repositoryName,
23057 Revision baseRevision,
23058 Author author,
23059 String summary,
23060 Comment detail,
23061 List<Change> changes)
23062 {
23063 this();
23064 this.projectName = projectName;
23065 this.repositoryName = repositoryName;
23066 this.baseRevision = baseRevision;
23067 this.author = author;
23068 this.summary = summary;
23069 this.detail = detail;
23070 this.changes = changes;
23071 }
23072
23073
23074
23075
23076 public push_args(push_args other) {
23077 if (other.isSetProjectName()) {
23078 this.projectName = other.projectName;
23079 }
23080 if (other.isSetRepositoryName()) {
23081 this.repositoryName = other.repositoryName;
23082 }
23083 if (other.isSetBaseRevision()) {
23084 this.baseRevision = new Revision(other.baseRevision);
23085 }
23086 if (other.isSetAuthor()) {
23087 this.author = new Author(other.author);
23088 }
23089 if (other.isSetSummary()) {
23090 this.summary = other.summary;
23091 }
23092 if (other.isSetDetail()) {
23093 this.detail = new Comment(other.detail);
23094 }
23095 if (other.isSetChanges()) {
23096 List<Change> __this__changes = new ArrayList<Change>(other.changes.size());
23097 for (Change other_element : other.changes) {
23098 __this__changes.add(new Change(other_element));
23099 }
23100 this.changes = __this__changes;
23101 }
23102 }
23103
23104 public push_args deepCopy() {
23105 return new push_args(this);
23106 }
23107
23108 @Override
23109 public void clear() {
23110 this.projectName = null;
23111 this.repositoryName = null;
23112 this.baseRevision = null;
23113 this.author = null;
23114 this.summary = null;
23115 this.detail = null;
23116 this.changes = null;
23117 }
23118
23119 public String getProjectName() {
23120 return this.projectName;
23121 }
23122
23123 public push_args setProjectName(String projectName) {
23124 this.projectName = projectName;
23125 return this;
23126 }
23127
23128 public void unsetProjectName() {
23129 this.projectName = null;
23130 }
23131
23132
23133 public boolean isSetProjectName() {
23134 return this.projectName != null;
23135 }
23136
23137 public void setProjectNameIsSet(boolean value) {
23138 if (!value) {
23139 this.projectName = null;
23140 }
23141 }
23142
23143 public String getRepositoryName() {
23144 return this.repositoryName;
23145 }
23146
23147 public push_args setRepositoryName(String repositoryName) {
23148 this.repositoryName = repositoryName;
23149 return this;
23150 }
23151
23152 public void unsetRepositoryName() {
23153 this.repositoryName = null;
23154 }
23155
23156
23157 public boolean isSetRepositoryName() {
23158 return this.repositoryName != null;
23159 }
23160
23161 public void setRepositoryNameIsSet(boolean value) {
23162 if (!value) {
23163 this.repositoryName = null;
23164 }
23165 }
23166
23167 public Revision getBaseRevision() {
23168 return this.baseRevision;
23169 }
23170
23171 public push_args setBaseRevision(Revision baseRevision) {
23172 this.baseRevision = baseRevision;
23173 return this;
23174 }
23175
23176 public void unsetBaseRevision() {
23177 this.baseRevision = null;
23178 }
23179
23180
23181 public boolean isSetBaseRevision() {
23182 return this.baseRevision != null;
23183 }
23184
23185 public void setBaseRevisionIsSet(boolean value) {
23186 if (!value) {
23187 this.baseRevision = null;
23188 }
23189 }
23190
23191 public Author getAuthor() {
23192 return this.author;
23193 }
23194
23195 public push_args setAuthor(Author author) {
23196 this.author = author;
23197 return this;
23198 }
23199
23200 public void unsetAuthor() {
23201 this.author = null;
23202 }
23203
23204
23205 public boolean isSetAuthor() {
23206 return this.author != null;
23207 }
23208
23209 public void setAuthorIsSet(boolean value) {
23210 if (!value) {
23211 this.author = null;
23212 }
23213 }
23214
23215 public String getSummary() {
23216 return this.summary;
23217 }
23218
23219 public push_args setSummary(String summary) {
23220 this.summary = summary;
23221 return this;
23222 }
23223
23224 public void unsetSummary() {
23225 this.summary = null;
23226 }
23227
23228
23229 public boolean isSetSummary() {
23230 return this.summary != null;
23231 }
23232
23233 public void setSummaryIsSet(boolean value) {
23234 if (!value) {
23235 this.summary = null;
23236 }
23237 }
23238
23239 public Comment getDetail() {
23240 return this.detail;
23241 }
23242
23243 public push_args setDetail(Comment detail) {
23244 this.detail = detail;
23245 return this;
23246 }
23247
23248 public void unsetDetail() {
23249 this.detail = null;
23250 }
23251
23252
23253 public boolean isSetDetail() {
23254 return this.detail != null;
23255 }
23256
23257 public void setDetailIsSet(boolean value) {
23258 if (!value) {
23259 this.detail = null;
23260 }
23261 }
23262
23263 public int getChangesSize() {
23264 return (this.changes == null) ? 0 : this.changes.size();
23265 }
23266
23267 public java.util.Iterator<Change> getChangesIterator() {
23268 return (this.changes == null) ? null : this.changes.iterator();
23269 }
23270
23271 public void addToChanges(Change elem) {
23272 if (this.changes == null) {
23273 this.changes = new ArrayList<Change>();
23274 }
23275 this.changes.add(elem);
23276 }
23277
23278 public List<Change> getChanges() {
23279 return this.changes;
23280 }
23281
23282 public push_args setChanges(List<Change> changes) {
23283 this.changes = changes;
23284 return this;
23285 }
23286
23287 public void unsetChanges() {
23288 this.changes = null;
23289 }
23290
23291
23292 public boolean isSetChanges() {
23293 return this.changes != null;
23294 }
23295
23296 public void setChangesIsSet(boolean value) {
23297 if (!value) {
23298 this.changes = null;
23299 }
23300 }
23301
23302 public void setFieldValue(_Fields field, Object value) {
23303 switch (field) {
23304 case PROJECT_NAME:
23305 if (value == null) {
23306 unsetProjectName();
23307 } else {
23308 setProjectName((String)value);
23309 }
23310 break;
23311
23312 case REPOSITORY_NAME:
23313 if (value == null) {
23314 unsetRepositoryName();
23315 } else {
23316 setRepositoryName((String)value);
23317 }
23318 break;
23319
23320 case BASE_REVISION:
23321 if (value == null) {
23322 unsetBaseRevision();
23323 } else {
23324 setBaseRevision((Revision)value);
23325 }
23326 break;
23327
23328 case AUTHOR:
23329 if (value == null) {
23330 unsetAuthor();
23331 } else {
23332 setAuthor((Author)value);
23333 }
23334 break;
23335
23336 case SUMMARY:
23337 if (value == null) {
23338 unsetSummary();
23339 } else {
23340 setSummary((String)value);
23341 }
23342 break;
23343
23344 case DETAIL:
23345 if (value == null) {
23346 unsetDetail();
23347 } else {
23348 setDetail((Comment)value);
23349 }
23350 break;
23351
23352 case CHANGES:
23353 if (value == null) {
23354 unsetChanges();
23355 } else {
23356 setChanges((List<Change>)value);
23357 }
23358 break;
23359
23360 }
23361 }
23362
23363 public Object getFieldValue(_Fields field) {
23364 switch (field) {
23365 case PROJECT_NAME:
23366 return getProjectName();
23367
23368 case REPOSITORY_NAME:
23369 return getRepositoryName();
23370
23371 case BASE_REVISION:
23372 return getBaseRevision();
23373
23374 case AUTHOR:
23375 return getAuthor();
23376
23377 case SUMMARY:
23378 return getSummary();
23379
23380 case DETAIL:
23381 return getDetail();
23382
23383 case CHANGES:
23384 return getChanges();
23385
23386 }
23387 throw new IllegalStateException();
23388 }
23389
23390
23391 public boolean isSet(_Fields field) {
23392 if (field == null) {
23393 throw new IllegalArgumentException();
23394 }
23395
23396 switch (field) {
23397 case PROJECT_NAME:
23398 return isSetProjectName();
23399 case REPOSITORY_NAME:
23400 return isSetRepositoryName();
23401 case BASE_REVISION:
23402 return isSetBaseRevision();
23403 case AUTHOR:
23404 return isSetAuthor();
23405 case SUMMARY:
23406 return isSetSummary();
23407 case DETAIL:
23408 return isSetDetail();
23409 case CHANGES:
23410 return isSetChanges();
23411 }
23412 throw new IllegalStateException();
23413 }
23414
23415 @Override
23416 public boolean equals(Object that) {
23417 if (that == null)
23418 return false;
23419 if (that instanceof push_args)
23420 return this.equals((push_args)that);
23421 return false;
23422 }
23423
23424 public boolean equals(push_args that) {
23425 if (that == null)
23426 return false;
23427
23428 boolean this_present_projectName = true && this.isSetProjectName();
23429 boolean that_present_projectName = true && that.isSetProjectName();
23430 if (this_present_projectName || that_present_projectName) {
23431 if (!(this_present_projectName && that_present_projectName))
23432 return false;
23433 if (!this.projectName.equals(that.projectName))
23434 return false;
23435 }
23436
23437 boolean this_present_repositoryName = true && this.isSetRepositoryName();
23438 boolean that_present_repositoryName = true && that.isSetRepositoryName();
23439 if (this_present_repositoryName || that_present_repositoryName) {
23440 if (!(this_present_repositoryName && that_present_repositoryName))
23441 return false;
23442 if (!this.repositoryName.equals(that.repositoryName))
23443 return false;
23444 }
23445
23446 boolean this_present_baseRevision = true && this.isSetBaseRevision();
23447 boolean that_present_baseRevision = true && that.isSetBaseRevision();
23448 if (this_present_baseRevision || that_present_baseRevision) {
23449 if (!(this_present_baseRevision && that_present_baseRevision))
23450 return false;
23451 if (!this.baseRevision.equals(that.baseRevision))
23452 return false;
23453 }
23454
23455 boolean this_present_author = true && this.isSetAuthor();
23456 boolean that_present_author = true && that.isSetAuthor();
23457 if (this_present_author || that_present_author) {
23458 if (!(this_present_author && that_present_author))
23459 return false;
23460 if (!this.author.equals(that.author))
23461 return false;
23462 }
23463
23464 boolean this_present_summary = true && this.isSetSummary();
23465 boolean that_present_summary = true && that.isSetSummary();
23466 if (this_present_summary || that_present_summary) {
23467 if (!(this_present_summary && that_present_summary))
23468 return false;
23469 if (!this.summary.equals(that.summary))
23470 return false;
23471 }
23472
23473 boolean this_present_detail = true && this.isSetDetail();
23474 boolean that_present_detail = true && that.isSetDetail();
23475 if (this_present_detail || that_present_detail) {
23476 if (!(this_present_detail && that_present_detail))
23477 return false;
23478 if (!this.detail.equals(that.detail))
23479 return false;
23480 }
23481
23482 boolean this_present_changes = true && this.isSetChanges();
23483 boolean that_present_changes = true && that.isSetChanges();
23484 if (this_present_changes || that_present_changes) {
23485 if (!(this_present_changes && that_present_changes))
23486 return false;
23487 if (!this.changes.equals(that.changes))
23488 return false;
23489 }
23490
23491 return true;
23492 }
23493
23494 @Override
23495 public int hashCode() {
23496 List<Object> list = new ArrayList<Object>();
23497
23498 boolean present_projectName = true && (isSetProjectName());
23499 list.add(present_projectName);
23500 if (present_projectName)
23501 list.add(projectName);
23502
23503 boolean present_repositoryName = true && (isSetRepositoryName());
23504 list.add(present_repositoryName);
23505 if (present_repositoryName)
23506 list.add(repositoryName);
23507
23508 boolean present_baseRevision = true && (isSetBaseRevision());
23509 list.add(present_baseRevision);
23510 if (present_baseRevision)
23511 list.add(baseRevision);
23512
23513 boolean present_author = true && (isSetAuthor());
23514 list.add(present_author);
23515 if (present_author)
23516 list.add(author);
23517
23518 boolean present_summary = true && (isSetSummary());
23519 list.add(present_summary);
23520 if (present_summary)
23521 list.add(summary);
23522
23523 boolean present_detail = true && (isSetDetail());
23524 list.add(present_detail);
23525 if (present_detail)
23526 list.add(detail);
23527
23528 boolean present_changes = true && (isSetChanges());
23529 list.add(present_changes);
23530 if (present_changes)
23531 list.add(changes);
23532
23533 return list.hashCode();
23534 }
23535
23536 @Override
23537 public int compareTo(push_args other) {
23538 if (!getClass().equals(other.getClass())) {
23539 return getClass().getName().compareTo(other.getClass().getName());
23540 }
23541
23542 int lastComparison = 0;
23543
23544 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
23545 if (lastComparison != 0) {
23546 return lastComparison;
23547 }
23548 if (isSetProjectName()) {
23549 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
23550 if (lastComparison != 0) {
23551 return lastComparison;
23552 }
23553 }
23554 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
23555 if (lastComparison != 0) {
23556 return lastComparison;
23557 }
23558 if (isSetRepositoryName()) {
23559 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
23560 if (lastComparison != 0) {
23561 return lastComparison;
23562 }
23563 }
23564 lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision());
23565 if (lastComparison != 0) {
23566 return lastComparison;
23567 }
23568 if (isSetBaseRevision()) {
23569 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision);
23570 if (lastComparison != 0) {
23571 return lastComparison;
23572 }
23573 }
23574 lastComparison = Boolean.valueOf(isSetAuthor()).compareTo(other.isSetAuthor());
23575 if (lastComparison != 0) {
23576 return lastComparison;
23577 }
23578 if (isSetAuthor()) {
23579 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.author, other.author);
23580 if (lastComparison != 0) {
23581 return lastComparison;
23582 }
23583 }
23584 lastComparison = Boolean.valueOf(isSetSummary()).compareTo(other.isSetSummary());
23585 if (lastComparison != 0) {
23586 return lastComparison;
23587 }
23588 if (isSetSummary()) {
23589 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.summary, other.summary);
23590 if (lastComparison != 0) {
23591 return lastComparison;
23592 }
23593 }
23594 lastComparison = Boolean.valueOf(isSetDetail()).compareTo(other.isSetDetail());
23595 if (lastComparison != 0) {
23596 return lastComparison;
23597 }
23598 if (isSetDetail()) {
23599 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.detail, other.detail);
23600 if (lastComparison != 0) {
23601 return lastComparison;
23602 }
23603 }
23604 lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges());
23605 if (lastComparison != 0) {
23606 return lastComparison;
23607 }
23608 if (isSetChanges()) {
23609 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes);
23610 if (lastComparison != 0) {
23611 return lastComparison;
23612 }
23613 }
23614 return 0;
23615 }
23616
23617 public _Fields fieldForId(int fieldId) {
23618 return _Fields.findByThriftId(fieldId);
23619 }
23620
23621 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23622 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23623 }
23624
23625 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23626 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23627 }
23628
23629 @Override
23630 public String toString() {
23631 StringBuilder sb = new StringBuilder("push_args(");
23632 boolean first = true;
23633
23634 sb.append("projectName:");
23635 if (this.projectName == null) {
23636 sb.append("null");
23637 } else {
23638 sb.append(this.projectName);
23639 }
23640 first = false;
23641 if (!first) sb.append(", ");
23642 sb.append("repositoryName:");
23643 if (this.repositoryName == null) {
23644 sb.append("null");
23645 } else {
23646 sb.append(this.repositoryName);
23647 }
23648 first = false;
23649 if (!first) sb.append(", ");
23650 sb.append("baseRevision:");
23651 if (this.baseRevision == null) {
23652 sb.append("null");
23653 } else {
23654 sb.append(this.baseRevision);
23655 }
23656 first = false;
23657 if (!first) sb.append(", ");
23658 sb.append("author:");
23659 if (this.author == null) {
23660 sb.append("null");
23661 } else {
23662 sb.append(this.author);
23663 }
23664 first = false;
23665 if (!first) sb.append(", ");
23666 sb.append("summary:");
23667 if (this.summary == null) {
23668 sb.append("null");
23669 } else {
23670 sb.append(this.summary);
23671 }
23672 first = false;
23673 if (!first) sb.append(", ");
23674 sb.append("detail:");
23675 if (this.detail == null) {
23676 sb.append("null");
23677 } else {
23678 sb.append(this.detail);
23679 }
23680 first = false;
23681 if (!first) sb.append(", ");
23682 sb.append("changes:");
23683 if (this.changes == null) {
23684 sb.append("null");
23685 } else {
23686 sb.append(this.changes);
23687 }
23688 first = false;
23689 sb.append(")");
23690 return sb.toString();
23691 }
23692
23693 public void validate() throws org.apache.thrift.TException {
23694
23695
23696 if (baseRevision != null) {
23697 baseRevision.validate();
23698 }
23699 if (author != null) {
23700 author.validate();
23701 }
23702 if (detail != null) {
23703 detail.validate();
23704 }
23705 }
23706
23707 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23708 try {
23709 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23710 } catch (org.apache.thrift.TException te) {
23711 throw new java.io.IOException(te);
23712 }
23713 }
23714
23715 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23716 try {
23717 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23718 } catch (org.apache.thrift.TException te) {
23719 throw new java.io.IOException(te);
23720 }
23721 }
23722
23723 private static class push_argsStandardSchemeFactory implements SchemeFactory {
23724 public push_argsStandardScheme getScheme() {
23725 return new push_argsStandardScheme();
23726 }
23727 }
23728
23729 private static class push_argsStandardScheme extends StandardScheme<push_args> {
23730
23731 public void read(org.apache.thrift.protocol.TProtocol iprot, push_args struct) throws org.apache.thrift.TException {
23732 org.apache.thrift.protocol.TField schemeField;
23733 iprot.readStructBegin();
23734 while (true)
23735 {
23736 schemeField = iprot.readFieldBegin();
23737 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23738 break;
23739 }
23740 switch (schemeField.id) {
23741 case 1:
23742 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23743 struct.projectName = iprot.readString();
23744 struct.setProjectNameIsSet(true);
23745 } else {
23746 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23747 }
23748 break;
23749 case 2:
23750 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23751 struct.repositoryName = iprot.readString();
23752 struct.setRepositoryNameIsSet(true);
23753 } else {
23754 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23755 }
23756 break;
23757 case 3:
23758 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23759 struct.baseRevision = new Revision();
23760 struct.baseRevision.read(iprot);
23761 struct.setBaseRevisionIsSet(true);
23762 } else {
23763 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23764 }
23765 break;
23766 case 4:
23767 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23768 struct.author = new Author();
23769 struct.author.read(iprot);
23770 struct.setAuthorIsSet(true);
23771 } else {
23772 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23773 }
23774 break;
23775 case 5:
23776 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23777 struct.summary = iprot.readString();
23778 struct.setSummaryIsSet(true);
23779 } else {
23780 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23781 }
23782 break;
23783 case 6:
23784 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
23785 struct.detail = new Comment();
23786 struct.detail.read(iprot);
23787 struct.setDetailIsSet(true);
23788 } else {
23789 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23790 }
23791 break;
23792 case 7:
23793 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
23794 {
23795 org.apache.thrift.protocol.TList _list152 = iprot.readListBegin();
23796 struct.changes = new ArrayList<Change>(_list152.size);
23797 Change _elem153;
23798 for (int _i154 = 0; _i154 < _list152.size; ++_i154)
23799 {
23800 _elem153 = new Change();
23801 _elem153.read(iprot);
23802 struct.changes.add(_elem153);
23803 }
23804 iprot.readListEnd();
23805 }
23806 struct.setChangesIsSet(true);
23807 } else {
23808 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23809 }
23810 break;
23811 default:
23812 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23813 }
23814 iprot.readFieldEnd();
23815 }
23816 iprot.readStructEnd();
23817
23818
23819 struct.validate();
23820 }
23821
23822 public void write(org.apache.thrift.protocol.TProtocol oprot, push_args struct) throws org.apache.thrift.TException {
23823 struct.validate();
23824
23825 oprot.writeStructBegin(STRUCT_DESC);
23826 if (struct.projectName != null) {
23827 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
23828 oprot.writeString(struct.projectName);
23829 oprot.writeFieldEnd();
23830 }
23831 if (struct.repositoryName != null) {
23832 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
23833 oprot.writeString(struct.repositoryName);
23834 oprot.writeFieldEnd();
23835 }
23836 if (struct.baseRevision != null) {
23837 oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC);
23838 struct.baseRevision.write(oprot);
23839 oprot.writeFieldEnd();
23840 }
23841 if (struct.author != null) {
23842 oprot.writeFieldBegin(AUTHOR_FIELD_DESC);
23843 struct.author.write(oprot);
23844 oprot.writeFieldEnd();
23845 }
23846 if (struct.summary != null) {
23847 oprot.writeFieldBegin(SUMMARY_FIELD_DESC);
23848 oprot.writeString(struct.summary);
23849 oprot.writeFieldEnd();
23850 }
23851 if (struct.detail != null) {
23852 oprot.writeFieldBegin(DETAIL_FIELD_DESC);
23853 struct.detail.write(oprot);
23854 oprot.writeFieldEnd();
23855 }
23856 if (struct.changes != null) {
23857 oprot.writeFieldBegin(CHANGES_FIELD_DESC);
23858 {
23859 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size()));
23860 for (Change _iter155 : struct.changes)
23861 {
23862 _iter155.write(oprot);
23863 }
23864 oprot.writeListEnd();
23865 }
23866 oprot.writeFieldEnd();
23867 }
23868 oprot.writeFieldStop();
23869 oprot.writeStructEnd();
23870 }
23871
23872 }
23873
23874 private static class push_argsTupleSchemeFactory implements SchemeFactory {
23875 public push_argsTupleScheme getScheme() {
23876 return new push_argsTupleScheme();
23877 }
23878 }
23879
23880 private static class push_argsTupleScheme extends TupleScheme<push_args> {
23881
23882 @Override
23883 public void write(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException {
23884 TTupleProtocol oprot = (TTupleProtocol) prot;
23885 BitSet optionals = new BitSet();
23886 if (struct.isSetProjectName()) {
23887 optionals.set(0);
23888 }
23889 if (struct.isSetRepositoryName()) {
23890 optionals.set(1);
23891 }
23892 if (struct.isSetBaseRevision()) {
23893 optionals.set(2);
23894 }
23895 if (struct.isSetAuthor()) {
23896 optionals.set(3);
23897 }
23898 if (struct.isSetSummary()) {
23899 optionals.set(4);
23900 }
23901 if (struct.isSetDetail()) {
23902 optionals.set(5);
23903 }
23904 if (struct.isSetChanges()) {
23905 optionals.set(6);
23906 }
23907 oprot.writeBitSet(optionals, 7);
23908 if (struct.isSetProjectName()) {
23909 oprot.writeString(struct.projectName);
23910 }
23911 if (struct.isSetRepositoryName()) {
23912 oprot.writeString(struct.repositoryName);
23913 }
23914 if (struct.isSetBaseRevision()) {
23915 struct.baseRevision.write(oprot);
23916 }
23917 if (struct.isSetAuthor()) {
23918 struct.author.write(oprot);
23919 }
23920 if (struct.isSetSummary()) {
23921 oprot.writeString(struct.summary);
23922 }
23923 if (struct.isSetDetail()) {
23924 struct.detail.write(oprot);
23925 }
23926 if (struct.isSetChanges()) {
23927 {
23928 oprot.writeI32(struct.changes.size());
23929 for (Change _iter156 : struct.changes)
23930 {
23931 _iter156.write(oprot);
23932 }
23933 }
23934 }
23935 }
23936
23937 @Override
23938 public void read(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException {
23939 TTupleProtocol iprot = (TTupleProtocol) prot;
23940 BitSet incoming = iprot.readBitSet(7);
23941 if (incoming.get(0)) {
23942 struct.projectName = iprot.readString();
23943 struct.setProjectNameIsSet(true);
23944 }
23945 if (incoming.get(1)) {
23946 struct.repositoryName = iprot.readString();
23947 struct.setRepositoryNameIsSet(true);
23948 }
23949 if (incoming.get(2)) {
23950 struct.baseRevision = new Revision();
23951 struct.baseRevision.read(iprot);
23952 struct.setBaseRevisionIsSet(true);
23953 }
23954 if (incoming.get(3)) {
23955 struct.author = new Author();
23956 struct.author.read(iprot);
23957 struct.setAuthorIsSet(true);
23958 }
23959 if (incoming.get(4)) {
23960 struct.summary = iprot.readString();
23961 struct.setSummaryIsSet(true);
23962 }
23963 if (incoming.get(5)) {
23964 struct.detail = new Comment();
23965 struct.detail.read(iprot);
23966 struct.setDetailIsSet(true);
23967 }
23968 if (incoming.get(6)) {
23969 {
23970 org.apache.thrift.protocol.TList _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
23971 struct.changes = new ArrayList<Change>(_list157.size);
23972 Change _elem158;
23973 for (int _i159 = 0; _i159 < _list157.size; ++_i159)
23974 {
23975 _elem158 = new Change();
23976 _elem158.read(iprot);
23977 struct.changes.add(_elem158);
23978 }
23979 }
23980 struct.setChangesIsSet(true);
23981 }
23982 }
23983 }
23984
23985 }
23986
23987 public static class push_result implements org.apache.thrift.TBase<push_result, push_result._Fields>, java.io.Serializable, Cloneable, Comparable<push_result> {
23988 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_result");
23989
23990 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
23991 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23992
23993 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23994 static {
23995 schemes.put(StandardScheme.class, new push_resultStandardSchemeFactory());
23996 schemes.put(TupleScheme.class, new push_resultTupleSchemeFactory());
23997 }
23998
23999 public Commit success;
24000 public CentralDogmaException e;
24001
24002
24003 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24004 SUCCESS((short)0, "success"),
24005 E((short)1, "e");
24006
24007 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24008
24009 static {
24010 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24011 byName.put(field.getFieldName(), field);
24012 }
24013 }
24014
24015
24016
24017
24018 public static _Fields findByThriftId(int fieldId) {
24019 switch(fieldId) {
24020 case 0:
24021 return SUCCESS;
24022 case 1:
24023 return E;
24024 default:
24025 return null;
24026 }
24027 }
24028
24029
24030
24031
24032
24033 public static _Fields findByThriftIdOrThrow(int fieldId) {
24034 _Fields fields = findByThriftId(fieldId);
24035 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24036 return fields;
24037 }
24038
24039
24040
24041
24042 public static _Fields findByName(String name) {
24043 return byName.get(name);
24044 }
24045
24046 private final short _thriftId;
24047 private final String _fieldName;
24048
24049 _Fields(short thriftId, String fieldName) {
24050 _thriftId = thriftId;
24051 _fieldName = fieldName;
24052 }
24053
24054 public short getThriftFieldId() {
24055 return _thriftId;
24056 }
24057
24058 public String getFieldName() {
24059 return _fieldName;
24060 }
24061 }
24062
24063
24064 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24065 static {
24066 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24067 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24068 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Commit.class)));
24069 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
24070 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24071 metaDataMap = Collections.unmodifiableMap(tmpMap);
24072 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(push_result.class, metaDataMap);
24073 }
24074
24075 public push_result() {
24076 }
24077
24078 public push_result(
24079 Commit success,
24080 CentralDogmaException e)
24081 {
24082 this();
24083 this.success = success;
24084 this.e = e;
24085 }
24086
24087
24088
24089
24090 public push_result(push_result other) {
24091 if (other.isSetSuccess()) {
24092 this.success = new Commit(other.success);
24093 }
24094 if (other.isSetE()) {
24095 this.e = new CentralDogmaException(other.e);
24096 }
24097 }
24098
24099 public push_result deepCopy() {
24100 return new push_result(this);
24101 }
24102
24103 @Override
24104 public void clear() {
24105 this.success = null;
24106 this.e = null;
24107 }
24108
24109 public Commit getSuccess() {
24110 return this.success;
24111 }
24112
24113 public push_result setSuccess(Commit success) {
24114 this.success = success;
24115 return this;
24116 }
24117
24118 public void unsetSuccess() {
24119 this.success = null;
24120 }
24121
24122
24123 public boolean isSetSuccess() {
24124 return this.success != null;
24125 }
24126
24127 public void setSuccessIsSet(boolean value) {
24128 if (!value) {
24129 this.success = null;
24130 }
24131 }
24132
24133 public CentralDogmaException getE() {
24134 return this.e;
24135 }
24136
24137 public push_result setE(CentralDogmaException e) {
24138 this.e = e;
24139 return this;
24140 }
24141
24142 public void unsetE() {
24143 this.e = null;
24144 }
24145
24146
24147 public boolean isSetE() {
24148 return this.e != null;
24149 }
24150
24151 public void setEIsSet(boolean value) {
24152 if (!value) {
24153 this.e = null;
24154 }
24155 }
24156
24157 public void setFieldValue(_Fields field, Object value) {
24158 switch (field) {
24159 case SUCCESS:
24160 if (value == null) {
24161 unsetSuccess();
24162 } else {
24163 setSuccess((Commit)value);
24164 }
24165 break;
24166
24167 case E:
24168 if (value == null) {
24169 unsetE();
24170 } else {
24171 setE((CentralDogmaException)value);
24172 }
24173 break;
24174
24175 }
24176 }
24177
24178 public Object getFieldValue(_Fields field) {
24179 switch (field) {
24180 case SUCCESS:
24181 return getSuccess();
24182
24183 case E:
24184 return getE();
24185
24186 }
24187 throw new IllegalStateException();
24188 }
24189
24190
24191 public boolean isSet(_Fields field) {
24192 if (field == null) {
24193 throw new IllegalArgumentException();
24194 }
24195
24196 switch (field) {
24197 case SUCCESS:
24198 return isSetSuccess();
24199 case E:
24200 return isSetE();
24201 }
24202 throw new IllegalStateException();
24203 }
24204
24205 @Override
24206 public boolean equals(Object that) {
24207 if (that == null)
24208 return false;
24209 if (that instanceof push_result)
24210 return this.equals((push_result)that);
24211 return false;
24212 }
24213
24214 public boolean equals(push_result that) {
24215 if (that == null)
24216 return false;
24217
24218 boolean this_present_success = true && this.isSetSuccess();
24219 boolean that_present_success = true && that.isSetSuccess();
24220 if (this_present_success || that_present_success) {
24221 if (!(this_present_success && that_present_success))
24222 return false;
24223 if (!this.success.equals(that.success))
24224 return false;
24225 }
24226
24227 boolean this_present_e = true && this.isSetE();
24228 boolean that_present_e = true && that.isSetE();
24229 if (this_present_e || that_present_e) {
24230 if (!(this_present_e && that_present_e))
24231 return false;
24232 if (!this.e.equals(that.e))
24233 return false;
24234 }
24235
24236 return true;
24237 }
24238
24239 @Override
24240 public int hashCode() {
24241 List<Object> list = new ArrayList<Object>();
24242
24243 boolean present_success = true && (isSetSuccess());
24244 list.add(present_success);
24245 if (present_success)
24246 list.add(success);
24247
24248 boolean present_e = true && (isSetE());
24249 list.add(present_e);
24250 if (present_e)
24251 list.add(e);
24252
24253 return list.hashCode();
24254 }
24255
24256 @Override
24257 public int compareTo(push_result other) {
24258 if (!getClass().equals(other.getClass())) {
24259 return getClass().getName().compareTo(other.getClass().getName());
24260 }
24261
24262 int lastComparison = 0;
24263
24264 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24265 if (lastComparison != 0) {
24266 return lastComparison;
24267 }
24268 if (isSetSuccess()) {
24269 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24270 if (lastComparison != 0) {
24271 return lastComparison;
24272 }
24273 }
24274 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
24275 if (lastComparison != 0) {
24276 return lastComparison;
24277 }
24278 if (isSetE()) {
24279 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
24280 if (lastComparison != 0) {
24281 return lastComparison;
24282 }
24283 }
24284 return 0;
24285 }
24286
24287 public _Fields fieldForId(int fieldId) {
24288 return _Fields.findByThriftId(fieldId);
24289 }
24290
24291 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24292 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24293 }
24294
24295 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24296 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24297 }
24298
24299 @Override
24300 public String toString() {
24301 StringBuilder sb = new StringBuilder("push_result(");
24302 boolean first = true;
24303
24304 sb.append("success:");
24305 if (this.success == null) {
24306 sb.append("null");
24307 } else {
24308 sb.append(this.success);
24309 }
24310 first = false;
24311 if (!first) sb.append(", ");
24312 sb.append("e:");
24313 if (this.e == null) {
24314 sb.append("null");
24315 } else {
24316 sb.append(this.e);
24317 }
24318 first = false;
24319 sb.append(")");
24320 return sb.toString();
24321 }
24322
24323 public void validate() throws org.apache.thrift.TException {
24324
24325
24326 if (success != null) {
24327 success.validate();
24328 }
24329 }
24330
24331 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24332 try {
24333 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24334 } catch (org.apache.thrift.TException te) {
24335 throw new java.io.IOException(te);
24336 }
24337 }
24338
24339 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24340 try {
24341 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24342 } catch (org.apache.thrift.TException te) {
24343 throw new java.io.IOException(te);
24344 }
24345 }
24346
24347 private static class push_resultStandardSchemeFactory implements SchemeFactory {
24348 public push_resultStandardScheme getScheme() {
24349 return new push_resultStandardScheme();
24350 }
24351 }
24352
24353 private static class push_resultStandardScheme extends StandardScheme<push_result> {
24354
24355 public void read(org.apache.thrift.protocol.TProtocol iprot, push_result struct) throws org.apache.thrift.TException {
24356 org.apache.thrift.protocol.TField schemeField;
24357 iprot.readStructBegin();
24358 while (true)
24359 {
24360 schemeField = iprot.readFieldBegin();
24361 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24362 break;
24363 }
24364 switch (schemeField.id) {
24365 case 0:
24366 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24367 struct.success = new Commit();
24368 struct.success.read(iprot);
24369 struct.setSuccessIsSet(true);
24370 } else {
24371 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24372 }
24373 break;
24374 case 1:
24375 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24376 struct.e = new CentralDogmaException();
24377 struct.e.read(iprot);
24378 struct.setEIsSet(true);
24379 } else {
24380 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24381 }
24382 break;
24383 default:
24384 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24385 }
24386 iprot.readFieldEnd();
24387 }
24388 iprot.readStructEnd();
24389
24390
24391 struct.validate();
24392 }
24393
24394 public void write(org.apache.thrift.protocol.TProtocol oprot, push_result struct) throws org.apache.thrift.TException {
24395 struct.validate();
24396
24397 oprot.writeStructBegin(STRUCT_DESC);
24398 if (struct.success != null) {
24399 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24400 struct.success.write(oprot);
24401 oprot.writeFieldEnd();
24402 }
24403 if (struct.e != null) {
24404 oprot.writeFieldBegin(E_FIELD_DESC);
24405 struct.e.write(oprot);
24406 oprot.writeFieldEnd();
24407 }
24408 oprot.writeFieldStop();
24409 oprot.writeStructEnd();
24410 }
24411
24412 }
24413
24414 private static class push_resultTupleSchemeFactory implements SchemeFactory {
24415 public push_resultTupleScheme getScheme() {
24416 return new push_resultTupleScheme();
24417 }
24418 }
24419
24420 private static class push_resultTupleScheme extends TupleScheme<push_result> {
24421
24422 @Override
24423 public void write(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException {
24424 TTupleProtocol oprot = (TTupleProtocol) prot;
24425 BitSet optionals = new BitSet();
24426 if (struct.isSetSuccess()) {
24427 optionals.set(0);
24428 }
24429 if (struct.isSetE()) {
24430 optionals.set(1);
24431 }
24432 oprot.writeBitSet(optionals, 2);
24433 if (struct.isSetSuccess()) {
24434 struct.success.write(oprot);
24435 }
24436 if (struct.isSetE()) {
24437 struct.e.write(oprot);
24438 }
24439 }
24440
24441 @Override
24442 public void read(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException {
24443 TTupleProtocol iprot = (TTupleProtocol) prot;
24444 BitSet incoming = iprot.readBitSet(2);
24445 if (incoming.get(0)) {
24446 struct.success = new Commit();
24447 struct.success.read(iprot);
24448 struct.setSuccessIsSet(true);
24449 }
24450 if (incoming.get(1)) {
24451 struct.e = new CentralDogmaException();
24452 struct.e.read(iprot);
24453 struct.setEIsSet(true);
24454 }
24455 }
24456 }
24457
24458 }
24459
24460 public static class getFile_args implements org.apache.thrift.TBase<getFile_args, getFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFile_args> {
24461 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_args");
24462
24463 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
24464 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
24465 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
24466 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4);
24467
24468 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24469 static {
24470 schemes.put(StandardScheme.class, new getFile_argsStandardSchemeFactory());
24471 schemes.put(TupleScheme.class, new getFile_argsTupleSchemeFactory());
24472 }
24473
24474 public String projectName;
24475 public String repositoryName;
24476 public Revision revision;
24477 public Query query;
24478
24479
24480 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24481 PROJECT_NAME((short)1, "projectName"),
24482 REPOSITORY_NAME((short)2, "repositoryName"),
24483 REVISION((short)3, "revision"),
24484 QUERY((short)4, "query");
24485
24486 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24487
24488 static {
24489 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24490 byName.put(field.getFieldName(), field);
24491 }
24492 }
24493
24494
24495
24496
24497 public static _Fields findByThriftId(int fieldId) {
24498 switch(fieldId) {
24499 case 1:
24500 return PROJECT_NAME;
24501 case 2:
24502 return REPOSITORY_NAME;
24503 case 3:
24504 return REVISION;
24505 case 4:
24506 return QUERY;
24507 default:
24508 return null;
24509 }
24510 }
24511
24512
24513
24514
24515
24516 public static _Fields findByThriftIdOrThrow(int fieldId) {
24517 _Fields fields = findByThriftId(fieldId);
24518 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24519 return fields;
24520 }
24521
24522
24523
24524
24525 public static _Fields findByName(String name) {
24526 return byName.get(name);
24527 }
24528
24529 private final short _thriftId;
24530 private final String _fieldName;
24531
24532 _Fields(short thriftId, String fieldName) {
24533 _thriftId = thriftId;
24534 _fieldName = fieldName;
24535 }
24536
24537 public short getThriftFieldId() {
24538 return _thriftId;
24539 }
24540
24541 public String getFieldName() {
24542 return _fieldName;
24543 }
24544 }
24545
24546
24547 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24548 static {
24549 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24550 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
24551 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24552 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
24553 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24554 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
24555 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
24556 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
24557 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
24558 metaDataMap = Collections.unmodifiableMap(tmpMap);
24559 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFile_args.class, metaDataMap);
24560 }
24561
24562 public getFile_args() {
24563 }
24564
24565 public getFile_args(
24566 String projectName,
24567 String repositoryName,
24568 Revision revision,
24569 Query query)
24570 {
24571 this();
24572 this.projectName = projectName;
24573 this.repositoryName = repositoryName;
24574 this.revision = revision;
24575 this.query = query;
24576 }
24577
24578
24579
24580
24581 public getFile_args(getFile_args other) {
24582 if (other.isSetProjectName()) {
24583 this.projectName = other.projectName;
24584 }
24585 if (other.isSetRepositoryName()) {
24586 this.repositoryName = other.repositoryName;
24587 }
24588 if (other.isSetRevision()) {
24589 this.revision = new Revision(other.revision);
24590 }
24591 if (other.isSetQuery()) {
24592 this.query = new Query(other.query);
24593 }
24594 }
24595
24596 public getFile_args deepCopy() {
24597 return new getFile_args(this);
24598 }
24599
24600 @Override
24601 public void clear() {
24602 this.projectName = null;
24603 this.repositoryName = null;
24604 this.revision = null;
24605 this.query = null;
24606 }
24607
24608 public String getProjectName() {
24609 return this.projectName;
24610 }
24611
24612 public getFile_args setProjectName(String projectName) {
24613 this.projectName = projectName;
24614 return this;
24615 }
24616
24617 public void unsetProjectName() {
24618 this.projectName = null;
24619 }
24620
24621
24622 public boolean isSetProjectName() {
24623 return this.projectName != null;
24624 }
24625
24626 public void setProjectNameIsSet(boolean value) {
24627 if (!value) {
24628 this.projectName = null;
24629 }
24630 }
24631
24632 public String getRepositoryName() {
24633 return this.repositoryName;
24634 }
24635
24636 public getFile_args setRepositoryName(String repositoryName) {
24637 this.repositoryName = repositoryName;
24638 return this;
24639 }
24640
24641 public void unsetRepositoryName() {
24642 this.repositoryName = null;
24643 }
24644
24645
24646 public boolean isSetRepositoryName() {
24647 return this.repositoryName != null;
24648 }
24649
24650 public void setRepositoryNameIsSet(boolean value) {
24651 if (!value) {
24652 this.repositoryName = null;
24653 }
24654 }
24655
24656 public Revision getRevision() {
24657 return this.revision;
24658 }
24659
24660 public getFile_args setRevision(Revision revision) {
24661 this.revision = revision;
24662 return this;
24663 }
24664
24665 public void unsetRevision() {
24666 this.revision = null;
24667 }
24668
24669
24670 public boolean isSetRevision() {
24671 return this.revision != null;
24672 }
24673
24674 public void setRevisionIsSet(boolean value) {
24675 if (!value) {
24676 this.revision = null;
24677 }
24678 }
24679
24680 public Query getQuery() {
24681 return this.query;
24682 }
24683
24684 public getFile_args setQuery(Query query) {
24685 this.query = query;
24686 return this;
24687 }
24688
24689 public void unsetQuery() {
24690 this.query = null;
24691 }
24692
24693
24694 public boolean isSetQuery() {
24695 return this.query != null;
24696 }
24697
24698 public void setQueryIsSet(boolean value) {
24699 if (!value) {
24700 this.query = null;
24701 }
24702 }
24703
24704 public void setFieldValue(_Fields field, Object value) {
24705 switch (field) {
24706 case PROJECT_NAME:
24707 if (value == null) {
24708 unsetProjectName();
24709 } else {
24710 setProjectName((String)value);
24711 }
24712 break;
24713
24714 case REPOSITORY_NAME:
24715 if (value == null) {
24716 unsetRepositoryName();
24717 } else {
24718 setRepositoryName((String)value);
24719 }
24720 break;
24721
24722 case REVISION:
24723 if (value == null) {
24724 unsetRevision();
24725 } else {
24726 setRevision((Revision)value);
24727 }
24728 break;
24729
24730 case QUERY:
24731 if (value == null) {
24732 unsetQuery();
24733 } else {
24734 setQuery((Query)value);
24735 }
24736 break;
24737
24738 }
24739 }
24740
24741 public Object getFieldValue(_Fields field) {
24742 switch (field) {
24743 case PROJECT_NAME:
24744 return getProjectName();
24745
24746 case REPOSITORY_NAME:
24747 return getRepositoryName();
24748
24749 case REVISION:
24750 return getRevision();
24751
24752 case QUERY:
24753 return getQuery();
24754
24755 }
24756 throw new IllegalStateException();
24757 }
24758
24759
24760 public boolean isSet(_Fields field) {
24761 if (field == null) {
24762 throw new IllegalArgumentException();
24763 }
24764
24765 switch (field) {
24766 case PROJECT_NAME:
24767 return isSetProjectName();
24768 case REPOSITORY_NAME:
24769 return isSetRepositoryName();
24770 case REVISION:
24771 return isSetRevision();
24772 case QUERY:
24773 return isSetQuery();
24774 }
24775 throw new IllegalStateException();
24776 }
24777
24778 @Override
24779 public boolean equals(Object that) {
24780 if (that == null)
24781 return false;
24782 if (that instanceof getFile_args)
24783 return this.equals((getFile_args)that);
24784 return false;
24785 }
24786
24787 public boolean equals(getFile_args that) {
24788 if (that == null)
24789 return false;
24790
24791 boolean this_present_projectName = true && this.isSetProjectName();
24792 boolean that_present_projectName = true && that.isSetProjectName();
24793 if (this_present_projectName || that_present_projectName) {
24794 if (!(this_present_projectName && that_present_projectName))
24795 return false;
24796 if (!this.projectName.equals(that.projectName))
24797 return false;
24798 }
24799
24800 boolean this_present_repositoryName = true && this.isSetRepositoryName();
24801 boolean that_present_repositoryName = true && that.isSetRepositoryName();
24802 if (this_present_repositoryName || that_present_repositoryName) {
24803 if (!(this_present_repositoryName && that_present_repositoryName))
24804 return false;
24805 if (!this.repositoryName.equals(that.repositoryName))
24806 return false;
24807 }
24808
24809 boolean this_present_revision = true && this.isSetRevision();
24810 boolean that_present_revision = true && that.isSetRevision();
24811 if (this_present_revision || that_present_revision) {
24812 if (!(this_present_revision && that_present_revision))
24813 return false;
24814 if (!this.revision.equals(that.revision))
24815 return false;
24816 }
24817
24818 boolean this_present_query = true && this.isSetQuery();
24819 boolean that_present_query = true && that.isSetQuery();
24820 if (this_present_query || that_present_query) {
24821 if (!(this_present_query && that_present_query))
24822 return false;
24823 if (!this.query.equals(that.query))
24824 return false;
24825 }
24826
24827 return true;
24828 }
24829
24830 @Override
24831 public int hashCode() {
24832 List<Object> list = new ArrayList<Object>();
24833
24834 boolean present_projectName = true && (isSetProjectName());
24835 list.add(present_projectName);
24836 if (present_projectName)
24837 list.add(projectName);
24838
24839 boolean present_repositoryName = true && (isSetRepositoryName());
24840 list.add(present_repositoryName);
24841 if (present_repositoryName)
24842 list.add(repositoryName);
24843
24844 boolean present_revision = true && (isSetRevision());
24845 list.add(present_revision);
24846 if (present_revision)
24847 list.add(revision);
24848
24849 boolean present_query = true && (isSetQuery());
24850 list.add(present_query);
24851 if (present_query)
24852 list.add(query);
24853
24854 return list.hashCode();
24855 }
24856
24857 @Override
24858 public int compareTo(getFile_args other) {
24859 if (!getClass().equals(other.getClass())) {
24860 return getClass().getName().compareTo(other.getClass().getName());
24861 }
24862
24863 int lastComparison = 0;
24864
24865 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
24866 if (lastComparison != 0) {
24867 return lastComparison;
24868 }
24869 if (isSetProjectName()) {
24870 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
24871 if (lastComparison != 0) {
24872 return lastComparison;
24873 }
24874 }
24875 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
24876 if (lastComparison != 0) {
24877 return lastComparison;
24878 }
24879 if (isSetRepositoryName()) {
24880 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
24881 if (lastComparison != 0) {
24882 return lastComparison;
24883 }
24884 }
24885 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
24886 if (lastComparison != 0) {
24887 return lastComparison;
24888 }
24889 if (isSetRevision()) {
24890 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
24891 if (lastComparison != 0) {
24892 return lastComparison;
24893 }
24894 }
24895 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
24896 if (lastComparison != 0) {
24897 return lastComparison;
24898 }
24899 if (isSetQuery()) {
24900 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
24901 if (lastComparison != 0) {
24902 return lastComparison;
24903 }
24904 }
24905 return 0;
24906 }
24907
24908 public _Fields fieldForId(int fieldId) {
24909 return _Fields.findByThriftId(fieldId);
24910 }
24911
24912 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24913 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24914 }
24915
24916 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24917 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24918 }
24919
24920 @Override
24921 public String toString() {
24922 StringBuilder sb = new StringBuilder("getFile_args(");
24923 boolean first = true;
24924
24925 sb.append("projectName:");
24926 if (this.projectName == null) {
24927 sb.append("null");
24928 } else {
24929 sb.append(this.projectName);
24930 }
24931 first = false;
24932 if (!first) sb.append(", ");
24933 sb.append("repositoryName:");
24934 if (this.repositoryName == null) {
24935 sb.append("null");
24936 } else {
24937 sb.append(this.repositoryName);
24938 }
24939 first = false;
24940 if (!first) sb.append(", ");
24941 sb.append("revision:");
24942 if (this.revision == null) {
24943 sb.append("null");
24944 } else {
24945 sb.append(this.revision);
24946 }
24947 first = false;
24948 if (!first) sb.append(", ");
24949 sb.append("query:");
24950 if (this.query == null) {
24951 sb.append("null");
24952 } else {
24953 sb.append(this.query);
24954 }
24955 first = false;
24956 sb.append(")");
24957 return sb.toString();
24958 }
24959
24960 public void validate() throws org.apache.thrift.TException {
24961
24962
24963 if (revision != null) {
24964 revision.validate();
24965 }
24966 if (query != null) {
24967 query.validate();
24968 }
24969 }
24970
24971 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24972 try {
24973 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24974 } catch (org.apache.thrift.TException te) {
24975 throw new java.io.IOException(te);
24976 }
24977 }
24978
24979 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24980 try {
24981 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24982 } catch (org.apache.thrift.TException te) {
24983 throw new java.io.IOException(te);
24984 }
24985 }
24986
24987 private static class getFile_argsStandardSchemeFactory implements SchemeFactory {
24988 public getFile_argsStandardScheme getScheme() {
24989 return new getFile_argsStandardScheme();
24990 }
24991 }
24992
24993 private static class getFile_argsStandardScheme extends StandardScheme<getFile_args> {
24994
24995 public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_args struct) throws org.apache.thrift.TException {
24996 org.apache.thrift.protocol.TField schemeField;
24997 iprot.readStructBegin();
24998 while (true)
24999 {
25000 schemeField = iprot.readFieldBegin();
25001 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25002 break;
25003 }
25004 switch (schemeField.id) {
25005 case 1:
25006 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25007 struct.projectName = iprot.readString();
25008 struct.setProjectNameIsSet(true);
25009 } else {
25010 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25011 }
25012 break;
25013 case 2:
25014 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25015 struct.repositoryName = iprot.readString();
25016 struct.setRepositoryNameIsSet(true);
25017 } else {
25018 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25019 }
25020 break;
25021 case 3:
25022 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25023 struct.revision = new Revision();
25024 struct.revision.read(iprot);
25025 struct.setRevisionIsSet(true);
25026 } else {
25027 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25028 }
25029 break;
25030 case 4:
25031 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25032 struct.query = new Query();
25033 struct.query.read(iprot);
25034 struct.setQueryIsSet(true);
25035 } else {
25036 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25037 }
25038 break;
25039 default:
25040 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25041 }
25042 iprot.readFieldEnd();
25043 }
25044 iprot.readStructEnd();
25045
25046
25047 struct.validate();
25048 }
25049
25050 public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_args struct) throws org.apache.thrift.TException {
25051 struct.validate();
25052
25053 oprot.writeStructBegin(STRUCT_DESC);
25054 if (struct.projectName != null) {
25055 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
25056 oprot.writeString(struct.projectName);
25057 oprot.writeFieldEnd();
25058 }
25059 if (struct.repositoryName != null) {
25060 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
25061 oprot.writeString(struct.repositoryName);
25062 oprot.writeFieldEnd();
25063 }
25064 if (struct.revision != null) {
25065 oprot.writeFieldBegin(REVISION_FIELD_DESC);
25066 struct.revision.write(oprot);
25067 oprot.writeFieldEnd();
25068 }
25069 if (struct.query != null) {
25070 oprot.writeFieldBegin(QUERY_FIELD_DESC);
25071 struct.query.write(oprot);
25072 oprot.writeFieldEnd();
25073 }
25074 oprot.writeFieldStop();
25075 oprot.writeStructEnd();
25076 }
25077
25078 }
25079
25080 private static class getFile_argsTupleSchemeFactory implements SchemeFactory {
25081 public getFile_argsTupleScheme getScheme() {
25082 return new getFile_argsTupleScheme();
25083 }
25084 }
25085
25086 private static class getFile_argsTupleScheme extends TupleScheme<getFile_args> {
25087
25088 @Override
25089 public void write(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException {
25090 TTupleProtocol oprot = (TTupleProtocol) prot;
25091 BitSet optionals = new BitSet();
25092 if (struct.isSetProjectName()) {
25093 optionals.set(0);
25094 }
25095 if (struct.isSetRepositoryName()) {
25096 optionals.set(1);
25097 }
25098 if (struct.isSetRevision()) {
25099 optionals.set(2);
25100 }
25101 if (struct.isSetQuery()) {
25102 optionals.set(3);
25103 }
25104 oprot.writeBitSet(optionals, 4);
25105 if (struct.isSetProjectName()) {
25106 oprot.writeString(struct.projectName);
25107 }
25108 if (struct.isSetRepositoryName()) {
25109 oprot.writeString(struct.repositoryName);
25110 }
25111 if (struct.isSetRevision()) {
25112 struct.revision.write(oprot);
25113 }
25114 if (struct.isSetQuery()) {
25115 struct.query.write(oprot);
25116 }
25117 }
25118
25119 @Override
25120 public void read(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException {
25121 TTupleProtocol iprot = (TTupleProtocol) prot;
25122 BitSet incoming = iprot.readBitSet(4);
25123 if (incoming.get(0)) {
25124 struct.projectName = iprot.readString();
25125 struct.setProjectNameIsSet(true);
25126 }
25127 if (incoming.get(1)) {
25128 struct.repositoryName = iprot.readString();
25129 struct.setRepositoryNameIsSet(true);
25130 }
25131 if (incoming.get(2)) {
25132 struct.revision = new Revision();
25133 struct.revision.read(iprot);
25134 struct.setRevisionIsSet(true);
25135 }
25136 if (incoming.get(3)) {
25137 struct.query = new Query();
25138 struct.query.read(iprot);
25139 struct.setQueryIsSet(true);
25140 }
25141 }
25142 }
25143
25144 }
25145
25146 public static class getFile_result implements org.apache.thrift.TBase<getFile_result, getFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFile_result> {
25147 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_result");
25148
25149 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
25150 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
25151
25152 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25153 static {
25154 schemes.put(StandardScheme.class, new getFile_resultStandardSchemeFactory());
25155 schemes.put(TupleScheme.class, new getFile_resultTupleSchemeFactory());
25156 }
25157
25158 public GetFileResult success;
25159 public CentralDogmaException e;
25160
25161
25162 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25163 SUCCESS((short)0, "success"),
25164 E((short)1, "e");
25165
25166 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25167
25168 static {
25169 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25170 byName.put(field.getFieldName(), field);
25171 }
25172 }
25173
25174
25175
25176
25177 public static _Fields findByThriftId(int fieldId) {
25178 switch(fieldId) {
25179 case 0:
25180 return SUCCESS;
25181 case 1:
25182 return E;
25183 default:
25184 return null;
25185 }
25186 }
25187
25188
25189
25190
25191
25192 public static _Fields findByThriftIdOrThrow(int fieldId) {
25193 _Fields fields = findByThriftId(fieldId);
25194 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25195 return fields;
25196 }
25197
25198
25199
25200
25201 public static _Fields findByName(String name) {
25202 return byName.get(name);
25203 }
25204
25205 private final short _thriftId;
25206 private final String _fieldName;
25207
25208 _Fields(short thriftId, String fieldName) {
25209 _thriftId = thriftId;
25210 _fieldName = fieldName;
25211 }
25212
25213 public short getThriftFieldId() {
25214 return _thriftId;
25215 }
25216
25217 public String getFieldName() {
25218 return _fieldName;
25219 }
25220 }
25221
25222
25223 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25224 static {
25225 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25226 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25227 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetFileResult.class)));
25228 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
25229 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25230 metaDataMap = Collections.unmodifiableMap(tmpMap);
25231 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFile_result.class, metaDataMap);
25232 }
25233
25234 public getFile_result() {
25235 }
25236
25237 public getFile_result(
25238 GetFileResult success,
25239 CentralDogmaException e)
25240 {
25241 this();
25242 this.success = success;
25243 this.e = e;
25244 }
25245
25246
25247
25248
25249 public getFile_result(getFile_result other) {
25250 if (other.isSetSuccess()) {
25251 this.success = new GetFileResult(other.success);
25252 }
25253 if (other.isSetE()) {
25254 this.e = new CentralDogmaException(other.e);
25255 }
25256 }
25257
25258 public getFile_result deepCopy() {
25259 return new getFile_result(this);
25260 }
25261
25262 @Override
25263 public void clear() {
25264 this.success = null;
25265 this.e = null;
25266 }
25267
25268 public GetFileResult getSuccess() {
25269 return this.success;
25270 }
25271
25272 public getFile_result setSuccess(GetFileResult success) {
25273 this.success = success;
25274 return this;
25275 }
25276
25277 public void unsetSuccess() {
25278 this.success = null;
25279 }
25280
25281
25282 public boolean isSetSuccess() {
25283 return this.success != null;
25284 }
25285
25286 public void setSuccessIsSet(boolean value) {
25287 if (!value) {
25288 this.success = null;
25289 }
25290 }
25291
25292 public CentralDogmaException getE() {
25293 return this.e;
25294 }
25295
25296 public getFile_result setE(CentralDogmaException e) {
25297 this.e = e;
25298 return this;
25299 }
25300
25301 public void unsetE() {
25302 this.e = null;
25303 }
25304
25305
25306 public boolean isSetE() {
25307 return this.e != null;
25308 }
25309
25310 public void setEIsSet(boolean value) {
25311 if (!value) {
25312 this.e = null;
25313 }
25314 }
25315
25316 public void setFieldValue(_Fields field, Object value) {
25317 switch (field) {
25318 case SUCCESS:
25319 if (value == null) {
25320 unsetSuccess();
25321 } else {
25322 setSuccess((GetFileResult)value);
25323 }
25324 break;
25325
25326 case E:
25327 if (value == null) {
25328 unsetE();
25329 } else {
25330 setE((CentralDogmaException)value);
25331 }
25332 break;
25333
25334 }
25335 }
25336
25337 public Object getFieldValue(_Fields field) {
25338 switch (field) {
25339 case SUCCESS:
25340 return getSuccess();
25341
25342 case E:
25343 return getE();
25344
25345 }
25346 throw new IllegalStateException();
25347 }
25348
25349
25350 public boolean isSet(_Fields field) {
25351 if (field == null) {
25352 throw new IllegalArgumentException();
25353 }
25354
25355 switch (field) {
25356 case SUCCESS:
25357 return isSetSuccess();
25358 case E:
25359 return isSetE();
25360 }
25361 throw new IllegalStateException();
25362 }
25363
25364 @Override
25365 public boolean equals(Object that) {
25366 if (that == null)
25367 return false;
25368 if (that instanceof getFile_result)
25369 return this.equals((getFile_result)that);
25370 return false;
25371 }
25372
25373 public boolean equals(getFile_result that) {
25374 if (that == null)
25375 return false;
25376
25377 boolean this_present_success = true && this.isSetSuccess();
25378 boolean that_present_success = true && that.isSetSuccess();
25379 if (this_present_success || that_present_success) {
25380 if (!(this_present_success && that_present_success))
25381 return false;
25382 if (!this.success.equals(that.success))
25383 return false;
25384 }
25385
25386 boolean this_present_e = true && this.isSetE();
25387 boolean that_present_e = true && that.isSetE();
25388 if (this_present_e || that_present_e) {
25389 if (!(this_present_e && that_present_e))
25390 return false;
25391 if (!this.e.equals(that.e))
25392 return false;
25393 }
25394
25395 return true;
25396 }
25397
25398 @Override
25399 public int hashCode() {
25400 List<Object> list = new ArrayList<Object>();
25401
25402 boolean present_success = true && (isSetSuccess());
25403 list.add(present_success);
25404 if (present_success)
25405 list.add(success);
25406
25407 boolean present_e = true && (isSetE());
25408 list.add(present_e);
25409 if (present_e)
25410 list.add(e);
25411
25412 return list.hashCode();
25413 }
25414
25415 @Override
25416 public int compareTo(getFile_result other) {
25417 if (!getClass().equals(other.getClass())) {
25418 return getClass().getName().compareTo(other.getClass().getName());
25419 }
25420
25421 int lastComparison = 0;
25422
25423 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
25424 if (lastComparison != 0) {
25425 return lastComparison;
25426 }
25427 if (isSetSuccess()) {
25428 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
25429 if (lastComparison != 0) {
25430 return lastComparison;
25431 }
25432 }
25433 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
25434 if (lastComparison != 0) {
25435 return lastComparison;
25436 }
25437 if (isSetE()) {
25438 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
25439 if (lastComparison != 0) {
25440 return lastComparison;
25441 }
25442 }
25443 return 0;
25444 }
25445
25446 public _Fields fieldForId(int fieldId) {
25447 return _Fields.findByThriftId(fieldId);
25448 }
25449
25450 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25451 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25452 }
25453
25454 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25455 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25456 }
25457
25458 @Override
25459 public String toString() {
25460 StringBuilder sb = new StringBuilder("getFile_result(");
25461 boolean first = true;
25462
25463 sb.append("success:");
25464 if (this.success == null) {
25465 sb.append("null");
25466 } else {
25467 sb.append(this.success);
25468 }
25469 first = false;
25470 if (!first) sb.append(", ");
25471 sb.append("e:");
25472 if (this.e == null) {
25473 sb.append("null");
25474 } else {
25475 sb.append(this.e);
25476 }
25477 first = false;
25478 sb.append(")");
25479 return sb.toString();
25480 }
25481
25482 public void validate() throws org.apache.thrift.TException {
25483
25484
25485 if (success != null) {
25486 success.validate();
25487 }
25488 }
25489
25490 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25491 try {
25492 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25493 } catch (org.apache.thrift.TException te) {
25494 throw new java.io.IOException(te);
25495 }
25496 }
25497
25498 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25499 try {
25500 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25501 } catch (org.apache.thrift.TException te) {
25502 throw new java.io.IOException(te);
25503 }
25504 }
25505
25506 private static class getFile_resultStandardSchemeFactory implements SchemeFactory {
25507 public getFile_resultStandardScheme getScheme() {
25508 return new getFile_resultStandardScheme();
25509 }
25510 }
25511
25512 private static class getFile_resultStandardScheme extends StandardScheme<getFile_result> {
25513
25514 public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_result struct) throws org.apache.thrift.TException {
25515 org.apache.thrift.protocol.TField schemeField;
25516 iprot.readStructBegin();
25517 while (true)
25518 {
25519 schemeField = iprot.readFieldBegin();
25520 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25521 break;
25522 }
25523 switch (schemeField.id) {
25524 case 0:
25525 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25526 struct.success = new GetFileResult();
25527 struct.success.read(iprot);
25528 struct.setSuccessIsSet(true);
25529 } else {
25530 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25531 }
25532 break;
25533 case 1:
25534 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25535 struct.e = new CentralDogmaException();
25536 struct.e.read(iprot);
25537 struct.setEIsSet(true);
25538 } else {
25539 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25540 }
25541 break;
25542 default:
25543 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25544 }
25545 iprot.readFieldEnd();
25546 }
25547 iprot.readStructEnd();
25548
25549
25550 struct.validate();
25551 }
25552
25553 public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_result struct) throws org.apache.thrift.TException {
25554 struct.validate();
25555
25556 oprot.writeStructBegin(STRUCT_DESC);
25557 if (struct.success != null) {
25558 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25559 struct.success.write(oprot);
25560 oprot.writeFieldEnd();
25561 }
25562 if (struct.e != null) {
25563 oprot.writeFieldBegin(E_FIELD_DESC);
25564 struct.e.write(oprot);
25565 oprot.writeFieldEnd();
25566 }
25567 oprot.writeFieldStop();
25568 oprot.writeStructEnd();
25569 }
25570
25571 }
25572
25573 private static class getFile_resultTupleSchemeFactory implements SchemeFactory {
25574 public getFile_resultTupleScheme getScheme() {
25575 return new getFile_resultTupleScheme();
25576 }
25577 }
25578
25579 private static class getFile_resultTupleScheme extends TupleScheme<getFile_result> {
25580
25581 @Override
25582 public void write(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException {
25583 TTupleProtocol oprot = (TTupleProtocol) prot;
25584 BitSet optionals = new BitSet();
25585 if (struct.isSetSuccess()) {
25586 optionals.set(0);
25587 }
25588 if (struct.isSetE()) {
25589 optionals.set(1);
25590 }
25591 oprot.writeBitSet(optionals, 2);
25592 if (struct.isSetSuccess()) {
25593 struct.success.write(oprot);
25594 }
25595 if (struct.isSetE()) {
25596 struct.e.write(oprot);
25597 }
25598 }
25599
25600 @Override
25601 public void read(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException {
25602 TTupleProtocol iprot = (TTupleProtocol) prot;
25603 BitSet incoming = iprot.readBitSet(2);
25604 if (incoming.get(0)) {
25605 struct.success = new GetFileResult();
25606 struct.success.read(iprot);
25607 struct.setSuccessIsSet(true);
25608 }
25609 if (incoming.get(1)) {
25610 struct.e = new CentralDogmaException();
25611 struct.e.read(iprot);
25612 struct.setEIsSet(true);
25613 }
25614 }
25615 }
25616
25617 }
25618
25619 public static class diffFile_args implements org.apache.thrift.TBase<diffFile_args, diffFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffFile_args> {
25620 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_args");
25621
25622 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
25623 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
25624 private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3);
25625 private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4);
25626 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)5);
25627
25628 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25629 static {
25630 schemes.put(StandardScheme.class, new diffFile_argsStandardSchemeFactory());
25631 schemes.put(TupleScheme.class, new diffFile_argsTupleSchemeFactory());
25632 }
25633
25634 public String projectName;
25635 public String repositoryName;
25636 public Revision from;
25637 public Revision to;
25638 public Query query;
25639
25640
25641 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25642 PROJECT_NAME((short)1, "projectName"),
25643 REPOSITORY_NAME((short)2, "repositoryName"),
25644 FROM_REVISION((short)3, "from"),
25645 TO_REVISION((short)4, "to"),
25646 QUERY((short)5, "query");
25647
25648 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25649
25650 static {
25651 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25652 byName.put(field.getFieldName(), field);
25653 }
25654 }
25655
25656
25657
25658
25659 public static _Fields findByThriftId(int fieldId) {
25660 switch(fieldId) {
25661 case 1:
25662 return PROJECT_NAME;
25663 case 2:
25664 return REPOSITORY_NAME;
25665 case 3:
25666 return FROM_REVISION;
25667 case 4:
25668 return TO_REVISION;
25669 case 5:
25670 return QUERY;
25671 default:
25672 return null;
25673 }
25674 }
25675
25676
25677
25678
25679
25680 public static _Fields findByThriftIdOrThrow(int fieldId) {
25681 _Fields fields = findByThriftId(fieldId);
25682 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25683 return fields;
25684 }
25685
25686
25687
25688
25689 public static _Fields findByName(String name) {
25690 return byName.get(name);
25691 }
25692
25693 private final short _thriftId;
25694 private final String _fieldName;
25695
25696 _Fields(short thriftId, String fieldName) {
25697 _thriftId = thriftId;
25698 _fieldName = fieldName;
25699 }
25700
25701 public short getThriftFieldId() {
25702 return _thriftId;
25703 }
25704
25705 public String getFieldName() {
25706 return _fieldName;
25707 }
25708 }
25709
25710
25711 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25712 static {
25713 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25714 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
25715 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25716 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
25717 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25718 tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT,
25719 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
25720 tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT,
25721 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
25722 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
25723 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
25724 metaDataMap = Collections.unmodifiableMap(tmpMap);
25725 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffFile_args.class, metaDataMap);
25726 }
25727
25728 public diffFile_args() {
25729 }
25730
25731 public diffFile_args(
25732 String projectName,
25733 String repositoryName,
25734 Revision from,
25735 Revision to,
25736 Query query)
25737 {
25738 this();
25739 this.projectName = projectName;
25740 this.repositoryName = repositoryName;
25741 this.from = from;
25742 this.to = to;
25743 this.query = query;
25744 }
25745
25746
25747
25748
25749 public diffFile_args(diffFile_args other) {
25750 if (other.isSetProjectName()) {
25751 this.projectName = other.projectName;
25752 }
25753 if (other.isSetRepositoryName()) {
25754 this.repositoryName = other.repositoryName;
25755 }
25756 if (other.isSetFromRevision()) {
25757 this.from = new Revision(other.from);
25758 }
25759 if (other.isSetToRevision()) {
25760 this.to = new Revision(other.to);
25761 }
25762 if (other.isSetQuery()) {
25763 this.query = new Query(other.query);
25764 }
25765 }
25766
25767 public diffFile_args deepCopy() {
25768 return new diffFile_args(this);
25769 }
25770
25771 @Override
25772 public void clear() {
25773 this.projectName = null;
25774 this.repositoryName = null;
25775 this.from = null;
25776 this.to = null;
25777 this.query = null;
25778 }
25779
25780 public String getProjectName() {
25781 return this.projectName;
25782 }
25783
25784 public diffFile_args setProjectName(String projectName) {
25785 this.projectName = projectName;
25786 return this;
25787 }
25788
25789 public void unsetProjectName() {
25790 this.projectName = null;
25791 }
25792
25793
25794 public boolean isSetProjectName() {
25795 return this.projectName != null;
25796 }
25797
25798 public void setProjectNameIsSet(boolean value) {
25799 if (!value) {
25800 this.projectName = null;
25801 }
25802 }
25803
25804 public String getRepositoryName() {
25805 return this.repositoryName;
25806 }
25807
25808 public diffFile_args setRepositoryName(String repositoryName) {
25809 this.repositoryName = repositoryName;
25810 return this;
25811 }
25812
25813 public void unsetRepositoryName() {
25814 this.repositoryName = null;
25815 }
25816
25817
25818 public boolean isSetRepositoryName() {
25819 return this.repositoryName != null;
25820 }
25821
25822 public void setRepositoryNameIsSet(boolean value) {
25823 if (!value) {
25824 this.repositoryName = null;
25825 }
25826 }
25827
25828 public Revision getFromRevision() {
25829 return this.from;
25830 }
25831
25832 public diffFile_args setFromRevision(Revision from) {
25833 this.from = from;
25834 return this;
25835 }
25836
25837 public void unsetFromRevision() {
25838 this.from = null;
25839 }
25840
25841
25842 public boolean isSetFromRevision() {
25843 return this.from != null;
25844 }
25845
25846 public void setFromRevisionIsSet(boolean value) {
25847 if (!value) {
25848 this.from = null;
25849 }
25850 }
25851
25852 public Revision getToRevision() {
25853 return this.to;
25854 }
25855
25856 public diffFile_args setToRevision(Revision to) {
25857 this.to = to;
25858 return this;
25859 }
25860
25861 public void unsetToRevision() {
25862 this.to = null;
25863 }
25864
25865
25866 public boolean isSetToRevision() {
25867 return this.to != null;
25868 }
25869
25870 public void setToRevisionIsSet(boolean value) {
25871 if (!value) {
25872 this.to = null;
25873 }
25874 }
25875
25876 public Query getQuery() {
25877 return this.query;
25878 }
25879
25880 public diffFile_args setQuery(Query query) {
25881 this.query = query;
25882 return this;
25883 }
25884
25885 public void unsetQuery() {
25886 this.query = null;
25887 }
25888
25889
25890 public boolean isSetQuery() {
25891 return this.query != null;
25892 }
25893
25894 public void setQueryIsSet(boolean value) {
25895 if (!value) {
25896 this.query = null;
25897 }
25898 }
25899
25900 public void setFieldValue(_Fields field, Object value) {
25901 switch (field) {
25902 case PROJECT_NAME:
25903 if (value == null) {
25904 unsetProjectName();
25905 } else {
25906 setProjectName((String)value);
25907 }
25908 break;
25909
25910 case REPOSITORY_NAME:
25911 if (value == null) {
25912 unsetRepositoryName();
25913 } else {
25914 setRepositoryName((String)value);
25915 }
25916 break;
25917
25918 case FROM_REVISION:
25919 if (value == null) {
25920 unsetFromRevision();
25921 } else {
25922 setFromRevision((Revision)value);
25923 }
25924 break;
25925
25926 case TO_REVISION:
25927 if (value == null) {
25928 unsetToRevision();
25929 } else {
25930 setToRevision((Revision)value);
25931 }
25932 break;
25933
25934 case QUERY:
25935 if (value == null) {
25936 unsetQuery();
25937 } else {
25938 setQuery((Query)value);
25939 }
25940 break;
25941
25942 }
25943 }
25944
25945 public Object getFieldValue(_Fields field) {
25946 switch (field) {
25947 case PROJECT_NAME:
25948 return getProjectName();
25949
25950 case REPOSITORY_NAME:
25951 return getRepositoryName();
25952
25953 case FROM_REVISION:
25954 return getFromRevision();
25955
25956 case TO_REVISION:
25957 return getToRevision();
25958
25959 case QUERY:
25960 return getQuery();
25961
25962 }
25963 throw new IllegalStateException();
25964 }
25965
25966
25967 public boolean isSet(_Fields field) {
25968 if (field == null) {
25969 throw new IllegalArgumentException();
25970 }
25971
25972 switch (field) {
25973 case PROJECT_NAME:
25974 return isSetProjectName();
25975 case REPOSITORY_NAME:
25976 return isSetRepositoryName();
25977 case FROM_REVISION:
25978 return isSetFromRevision();
25979 case TO_REVISION:
25980 return isSetToRevision();
25981 case QUERY:
25982 return isSetQuery();
25983 }
25984 throw new IllegalStateException();
25985 }
25986
25987 @Override
25988 public boolean equals(Object that) {
25989 if (that == null)
25990 return false;
25991 if (that instanceof diffFile_args)
25992 return this.equals((diffFile_args)that);
25993 return false;
25994 }
25995
25996 public boolean equals(diffFile_args that) {
25997 if (that == null)
25998 return false;
25999
26000 boolean this_present_projectName = true && this.isSetProjectName();
26001 boolean that_present_projectName = true && that.isSetProjectName();
26002 if (this_present_projectName || that_present_projectName) {
26003 if (!(this_present_projectName && that_present_projectName))
26004 return false;
26005 if (!this.projectName.equals(that.projectName))
26006 return false;
26007 }
26008
26009 boolean this_present_repositoryName = true && this.isSetRepositoryName();
26010 boolean that_present_repositoryName = true && that.isSetRepositoryName();
26011 if (this_present_repositoryName || that_present_repositoryName) {
26012 if (!(this_present_repositoryName && that_present_repositoryName))
26013 return false;
26014 if (!this.repositoryName.equals(that.repositoryName))
26015 return false;
26016 }
26017
26018 boolean this_present_from = true && this.isSetFromRevision();
26019 boolean that_present_from = true && that.isSetFromRevision();
26020 if (this_present_from || that_present_from) {
26021 if (!(this_present_from && that_present_from))
26022 return false;
26023 if (!this.from.equals(that.from))
26024 return false;
26025 }
26026
26027 boolean this_present_to = true && this.isSetToRevision();
26028 boolean that_present_to = true && that.isSetToRevision();
26029 if (this_present_to || that_present_to) {
26030 if (!(this_present_to && that_present_to))
26031 return false;
26032 if (!this.to.equals(that.to))
26033 return false;
26034 }
26035
26036 boolean this_present_query = true && this.isSetQuery();
26037 boolean that_present_query = true && that.isSetQuery();
26038 if (this_present_query || that_present_query) {
26039 if (!(this_present_query && that_present_query))
26040 return false;
26041 if (!this.query.equals(that.query))
26042 return false;
26043 }
26044
26045 return true;
26046 }
26047
26048 @Override
26049 public int hashCode() {
26050 List<Object> list = new ArrayList<Object>();
26051
26052 boolean present_projectName = true && (isSetProjectName());
26053 list.add(present_projectName);
26054 if (present_projectName)
26055 list.add(projectName);
26056
26057 boolean present_repositoryName = true && (isSetRepositoryName());
26058 list.add(present_repositoryName);
26059 if (present_repositoryName)
26060 list.add(repositoryName);
26061
26062 boolean present_from = true && (isSetFromRevision());
26063 list.add(present_from);
26064 if (present_from)
26065 list.add(from);
26066
26067 boolean present_to = true && (isSetToRevision());
26068 list.add(present_to);
26069 if (present_to)
26070 list.add(to);
26071
26072 boolean present_query = true && (isSetQuery());
26073 list.add(present_query);
26074 if (present_query)
26075 list.add(query);
26076
26077 return list.hashCode();
26078 }
26079
26080 @Override
26081 public int compareTo(diffFile_args other) {
26082 if (!getClass().equals(other.getClass())) {
26083 return getClass().getName().compareTo(other.getClass().getName());
26084 }
26085
26086 int lastComparison = 0;
26087
26088 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
26089 if (lastComparison != 0) {
26090 return lastComparison;
26091 }
26092 if (isSetProjectName()) {
26093 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
26094 if (lastComparison != 0) {
26095 return lastComparison;
26096 }
26097 }
26098 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
26099 if (lastComparison != 0) {
26100 return lastComparison;
26101 }
26102 if (isSetRepositoryName()) {
26103 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
26104 if (lastComparison != 0) {
26105 return lastComparison;
26106 }
26107 }
26108 lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision());
26109 if (lastComparison != 0) {
26110 return lastComparison;
26111 }
26112 if (isSetFromRevision()) {
26113 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from);
26114 if (lastComparison != 0) {
26115 return lastComparison;
26116 }
26117 }
26118 lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision());
26119 if (lastComparison != 0) {
26120 return lastComparison;
26121 }
26122 if (isSetToRevision()) {
26123 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to);
26124 if (lastComparison != 0) {
26125 return lastComparison;
26126 }
26127 }
26128 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
26129 if (lastComparison != 0) {
26130 return lastComparison;
26131 }
26132 if (isSetQuery()) {
26133 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
26134 if (lastComparison != 0) {
26135 return lastComparison;
26136 }
26137 }
26138 return 0;
26139 }
26140
26141 public _Fields fieldForId(int fieldId) {
26142 return _Fields.findByThriftId(fieldId);
26143 }
26144
26145 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26146 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26147 }
26148
26149 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26150 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26151 }
26152
26153 @Override
26154 public String toString() {
26155 StringBuilder sb = new StringBuilder("diffFile_args(");
26156 boolean first = true;
26157
26158 sb.append("projectName:");
26159 if (this.projectName == null) {
26160 sb.append("null");
26161 } else {
26162 sb.append(this.projectName);
26163 }
26164 first = false;
26165 if (!first) sb.append(", ");
26166 sb.append("repositoryName:");
26167 if (this.repositoryName == null) {
26168 sb.append("null");
26169 } else {
26170 sb.append(this.repositoryName);
26171 }
26172 first = false;
26173 if (!first) sb.append(", ");
26174 sb.append("from:");
26175 if (this.from == null) {
26176 sb.append("null");
26177 } else {
26178 sb.append(this.from);
26179 }
26180 first = false;
26181 if (!first) sb.append(", ");
26182 sb.append("to:");
26183 if (this.to == null) {
26184 sb.append("null");
26185 } else {
26186 sb.append(this.to);
26187 }
26188 first = false;
26189 if (!first) sb.append(", ");
26190 sb.append("query:");
26191 if (this.query == null) {
26192 sb.append("null");
26193 } else {
26194 sb.append(this.query);
26195 }
26196 first = false;
26197 sb.append(")");
26198 return sb.toString();
26199 }
26200
26201 public void validate() throws org.apache.thrift.TException {
26202
26203
26204 if (from != null) {
26205 from.validate();
26206 }
26207 if (to != null) {
26208 to.validate();
26209 }
26210 if (query != null) {
26211 query.validate();
26212 }
26213 }
26214
26215 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26216 try {
26217 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26218 } catch (org.apache.thrift.TException te) {
26219 throw new java.io.IOException(te);
26220 }
26221 }
26222
26223 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26224 try {
26225 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26226 } catch (org.apache.thrift.TException te) {
26227 throw new java.io.IOException(te);
26228 }
26229 }
26230
26231 private static class diffFile_argsStandardSchemeFactory implements SchemeFactory {
26232 public diffFile_argsStandardScheme getScheme() {
26233 return new diffFile_argsStandardScheme();
26234 }
26235 }
26236
26237 private static class diffFile_argsStandardScheme extends StandardScheme<diffFile_args> {
26238
26239 public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_args struct) throws org.apache.thrift.TException {
26240 org.apache.thrift.protocol.TField schemeField;
26241 iprot.readStructBegin();
26242 while (true)
26243 {
26244 schemeField = iprot.readFieldBegin();
26245 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26246 break;
26247 }
26248 switch (schemeField.id) {
26249 case 1:
26250 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26251 struct.projectName = iprot.readString();
26252 struct.setProjectNameIsSet(true);
26253 } else {
26254 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26255 }
26256 break;
26257 case 2:
26258 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26259 struct.repositoryName = iprot.readString();
26260 struct.setRepositoryNameIsSet(true);
26261 } else {
26262 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26263 }
26264 break;
26265 case 3:
26266 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26267 struct.from = new Revision();
26268 struct.from.read(iprot);
26269 struct.setFromRevisionIsSet(true);
26270 } else {
26271 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26272 }
26273 break;
26274 case 4:
26275 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26276 struct.to = new Revision();
26277 struct.to.read(iprot);
26278 struct.setToRevisionIsSet(true);
26279 } else {
26280 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26281 }
26282 break;
26283 case 5:
26284 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26285 struct.query = new Query();
26286 struct.query.read(iprot);
26287 struct.setQueryIsSet(true);
26288 } else {
26289 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26290 }
26291 break;
26292 default:
26293 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26294 }
26295 iprot.readFieldEnd();
26296 }
26297 iprot.readStructEnd();
26298
26299
26300 struct.validate();
26301 }
26302
26303 public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_args struct) throws org.apache.thrift.TException {
26304 struct.validate();
26305
26306 oprot.writeStructBegin(STRUCT_DESC);
26307 if (struct.projectName != null) {
26308 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
26309 oprot.writeString(struct.projectName);
26310 oprot.writeFieldEnd();
26311 }
26312 if (struct.repositoryName != null) {
26313 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
26314 oprot.writeString(struct.repositoryName);
26315 oprot.writeFieldEnd();
26316 }
26317 if (struct.from != null) {
26318 oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC);
26319 struct.from.write(oprot);
26320 oprot.writeFieldEnd();
26321 }
26322 if (struct.to != null) {
26323 oprot.writeFieldBegin(TO_REVISION_FIELD_DESC);
26324 struct.to.write(oprot);
26325 oprot.writeFieldEnd();
26326 }
26327 if (struct.query != null) {
26328 oprot.writeFieldBegin(QUERY_FIELD_DESC);
26329 struct.query.write(oprot);
26330 oprot.writeFieldEnd();
26331 }
26332 oprot.writeFieldStop();
26333 oprot.writeStructEnd();
26334 }
26335
26336 }
26337
26338 private static class diffFile_argsTupleSchemeFactory implements SchemeFactory {
26339 public diffFile_argsTupleScheme getScheme() {
26340 return new diffFile_argsTupleScheme();
26341 }
26342 }
26343
26344 private static class diffFile_argsTupleScheme extends TupleScheme<diffFile_args> {
26345
26346 @Override
26347 public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException {
26348 TTupleProtocol oprot = (TTupleProtocol) prot;
26349 BitSet optionals = new BitSet();
26350 if (struct.isSetProjectName()) {
26351 optionals.set(0);
26352 }
26353 if (struct.isSetRepositoryName()) {
26354 optionals.set(1);
26355 }
26356 if (struct.isSetFromRevision()) {
26357 optionals.set(2);
26358 }
26359 if (struct.isSetToRevision()) {
26360 optionals.set(3);
26361 }
26362 if (struct.isSetQuery()) {
26363 optionals.set(4);
26364 }
26365 oprot.writeBitSet(optionals, 5);
26366 if (struct.isSetProjectName()) {
26367 oprot.writeString(struct.projectName);
26368 }
26369 if (struct.isSetRepositoryName()) {
26370 oprot.writeString(struct.repositoryName);
26371 }
26372 if (struct.isSetFromRevision()) {
26373 struct.from.write(oprot);
26374 }
26375 if (struct.isSetToRevision()) {
26376 struct.to.write(oprot);
26377 }
26378 if (struct.isSetQuery()) {
26379 struct.query.write(oprot);
26380 }
26381 }
26382
26383 @Override
26384 public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException {
26385 TTupleProtocol iprot = (TTupleProtocol) prot;
26386 BitSet incoming = iprot.readBitSet(5);
26387 if (incoming.get(0)) {
26388 struct.projectName = iprot.readString();
26389 struct.setProjectNameIsSet(true);
26390 }
26391 if (incoming.get(1)) {
26392 struct.repositoryName = iprot.readString();
26393 struct.setRepositoryNameIsSet(true);
26394 }
26395 if (incoming.get(2)) {
26396 struct.from = new Revision();
26397 struct.from.read(iprot);
26398 struct.setFromRevisionIsSet(true);
26399 }
26400 if (incoming.get(3)) {
26401 struct.to = new Revision();
26402 struct.to.read(iprot);
26403 struct.setToRevisionIsSet(true);
26404 }
26405 if (incoming.get(4)) {
26406 struct.query = new Query();
26407 struct.query.read(iprot);
26408 struct.setQueryIsSet(true);
26409 }
26410 }
26411 }
26412
26413 }
26414
26415 public static class diffFile_result implements org.apache.thrift.TBase<diffFile_result, diffFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffFile_result> {
26416 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_result");
26417
26418 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
26419 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26420
26421 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26422 static {
26423 schemes.put(StandardScheme.class, new diffFile_resultStandardSchemeFactory());
26424 schemes.put(TupleScheme.class, new diffFile_resultTupleSchemeFactory());
26425 }
26426
26427 public DiffFileResult success;
26428 public CentralDogmaException e;
26429
26430
26431 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26432 SUCCESS((short)0, "success"),
26433 E((short)1, "e");
26434
26435 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26436
26437 static {
26438 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26439 byName.put(field.getFieldName(), field);
26440 }
26441 }
26442
26443
26444
26445
26446 public static _Fields findByThriftId(int fieldId) {
26447 switch(fieldId) {
26448 case 0:
26449 return SUCCESS;
26450 case 1:
26451 return E;
26452 default:
26453 return null;
26454 }
26455 }
26456
26457
26458
26459
26460
26461 public static _Fields findByThriftIdOrThrow(int fieldId) {
26462 _Fields fields = findByThriftId(fieldId);
26463 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26464 return fields;
26465 }
26466
26467
26468
26469
26470 public static _Fields findByName(String name) {
26471 return byName.get(name);
26472 }
26473
26474 private final short _thriftId;
26475 private final String _fieldName;
26476
26477 _Fields(short thriftId, String fieldName) {
26478 _thriftId = thriftId;
26479 _fieldName = fieldName;
26480 }
26481
26482 public short getThriftFieldId() {
26483 return _thriftId;
26484 }
26485
26486 public String getFieldName() {
26487 return _fieldName;
26488 }
26489 }
26490
26491
26492 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26493 static {
26494 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26495 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26496 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DiffFileResult.class)));
26497 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
26498 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26499 metaDataMap = Collections.unmodifiableMap(tmpMap);
26500 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffFile_result.class, metaDataMap);
26501 }
26502
26503 public diffFile_result() {
26504 }
26505
26506 public diffFile_result(
26507 DiffFileResult success,
26508 CentralDogmaException e)
26509 {
26510 this();
26511 this.success = success;
26512 this.e = e;
26513 }
26514
26515
26516
26517
26518 public diffFile_result(diffFile_result other) {
26519 if (other.isSetSuccess()) {
26520 this.success = new DiffFileResult(other.success);
26521 }
26522 if (other.isSetE()) {
26523 this.e = new CentralDogmaException(other.e);
26524 }
26525 }
26526
26527 public diffFile_result deepCopy() {
26528 return new diffFile_result(this);
26529 }
26530
26531 @Override
26532 public void clear() {
26533 this.success = null;
26534 this.e = null;
26535 }
26536
26537 public DiffFileResult getSuccess() {
26538 return this.success;
26539 }
26540
26541 public diffFile_result setSuccess(DiffFileResult success) {
26542 this.success = success;
26543 return this;
26544 }
26545
26546 public void unsetSuccess() {
26547 this.success = null;
26548 }
26549
26550
26551 public boolean isSetSuccess() {
26552 return this.success != null;
26553 }
26554
26555 public void setSuccessIsSet(boolean value) {
26556 if (!value) {
26557 this.success = null;
26558 }
26559 }
26560
26561 public CentralDogmaException getE() {
26562 return this.e;
26563 }
26564
26565 public diffFile_result setE(CentralDogmaException e) {
26566 this.e = e;
26567 return this;
26568 }
26569
26570 public void unsetE() {
26571 this.e = null;
26572 }
26573
26574
26575 public boolean isSetE() {
26576 return this.e != null;
26577 }
26578
26579 public void setEIsSet(boolean value) {
26580 if (!value) {
26581 this.e = null;
26582 }
26583 }
26584
26585 public void setFieldValue(_Fields field, Object value) {
26586 switch (field) {
26587 case SUCCESS:
26588 if (value == null) {
26589 unsetSuccess();
26590 } else {
26591 setSuccess((DiffFileResult)value);
26592 }
26593 break;
26594
26595 case E:
26596 if (value == null) {
26597 unsetE();
26598 } else {
26599 setE((CentralDogmaException)value);
26600 }
26601 break;
26602
26603 }
26604 }
26605
26606 public Object getFieldValue(_Fields field) {
26607 switch (field) {
26608 case SUCCESS:
26609 return getSuccess();
26610
26611 case E:
26612 return getE();
26613
26614 }
26615 throw new IllegalStateException();
26616 }
26617
26618
26619 public boolean isSet(_Fields field) {
26620 if (field == null) {
26621 throw new IllegalArgumentException();
26622 }
26623
26624 switch (field) {
26625 case SUCCESS:
26626 return isSetSuccess();
26627 case E:
26628 return isSetE();
26629 }
26630 throw new IllegalStateException();
26631 }
26632
26633 @Override
26634 public boolean equals(Object that) {
26635 if (that == null)
26636 return false;
26637 if (that instanceof diffFile_result)
26638 return this.equals((diffFile_result)that);
26639 return false;
26640 }
26641
26642 public boolean equals(diffFile_result that) {
26643 if (that == null)
26644 return false;
26645
26646 boolean this_present_success = true && this.isSetSuccess();
26647 boolean that_present_success = true && that.isSetSuccess();
26648 if (this_present_success || that_present_success) {
26649 if (!(this_present_success && that_present_success))
26650 return false;
26651 if (!this.success.equals(that.success))
26652 return false;
26653 }
26654
26655 boolean this_present_e = true && this.isSetE();
26656 boolean that_present_e = true && that.isSetE();
26657 if (this_present_e || that_present_e) {
26658 if (!(this_present_e && that_present_e))
26659 return false;
26660 if (!this.e.equals(that.e))
26661 return false;
26662 }
26663
26664 return true;
26665 }
26666
26667 @Override
26668 public int hashCode() {
26669 List<Object> list = new ArrayList<Object>();
26670
26671 boolean present_success = true && (isSetSuccess());
26672 list.add(present_success);
26673 if (present_success)
26674 list.add(success);
26675
26676 boolean present_e = true && (isSetE());
26677 list.add(present_e);
26678 if (present_e)
26679 list.add(e);
26680
26681 return list.hashCode();
26682 }
26683
26684 @Override
26685 public int compareTo(diffFile_result other) {
26686 if (!getClass().equals(other.getClass())) {
26687 return getClass().getName().compareTo(other.getClass().getName());
26688 }
26689
26690 int lastComparison = 0;
26691
26692 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26693 if (lastComparison != 0) {
26694 return lastComparison;
26695 }
26696 if (isSetSuccess()) {
26697 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26698 if (lastComparison != 0) {
26699 return lastComparison;
26700 }
26701 }
26702 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
26703 if (lastComparison != 0) {
26704 return lastComparison;
26705 }
26706 if (isSetE()) {
26707 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
26708 if (lastComparison != 0) {
26709 return lastComparison;
26710 }
26711 }
26712 return 0;
26713 }
26714
26715 public _Fields fieldForId(int fieldId) {
26716 return _Fields.findByThriftId(fieldId);
26717 }
26718
26719 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26720 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26721 }
26722
26723 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26724 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26725 }
26726
26727 @Override
26728 public String toString() {
26729 StringBuilder sb = new StringBuilder("diffFile_result(");
26730 boolean first = true;
26731
26732 sb.append("success:");
26733 if (this.success == null) {
26734 sb.append("null");
26735 } else {
26736 sb.append(this.success);
26737 }
26738 first = false;
26739 if (!first) sb.append(", ");
26740 sb.append("e:");
26741 if (this.e == null) {
26742 sb.append("null");
26743 } else {
26744 sb.append(this.e);
26745 }
26746 first = false;
26747 sb.append(")");
26748 return sb.toString();
26749 }
26750
26751 public void validate() throws org.apache.thrift.TException {
26752
26753
26754 if (success != null) {
26755 success.validate();
26756 }
26757 }
26758
26759 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26760 try {
26761 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26762 } catch (org.apache.thrift.TException te) {
26763 throw new java.io.IOException(te);
26764 }
26765 }
26766
26767 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26768 try {
26769 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26770 } catch (org.apache.thrift.TException te) {
26771 throw new java.io.IOException(te);
26772 }
26773 }
26774
26775 private static class diffFile_resultStandardSchemeFactory implements SchemeFactory {
26776 public diffFile_resultStandardScheme getScheme() {
26777 return new diffFile_resultStandardScheme();
26778 }
26779 }
26780
26781 private static class diffFile_resultStandardScheme extends StandardScheme<diffFile_result> {
26782
26783 public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_result struct) throws org.apache.thrift.TException {
26784 org.apache.thrift.protocol.TField schemeField;
26785 iprot.readStructBegin();
26786 while (true)
26787 {
26788 schemeField = iprot.readFieldBegin();
26789 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26790 break;
26791 }
26792 switch (schemeField.id) {
26793 case 0:
26794 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26795 struct.success = new DiffFileResult();
26796 struct.success.read(iprot);
26797 struct.setSuccessIsSet(true);
26798 } else {
26799 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26800 }
26801 break;
26802 case 1:
26803 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26804 struct.e = new CentralDogmaException();
26805 struct.e.read(iprot);
26806 struct.setEIsSet(true);
26807 } else {
26808 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26809 }
26810 break;
26811 default:
26812 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26813 }
26814 iprot.readFieldEnd();
26815 }
26816 iprot.readStructEnd();
26817
26818
26819 struct.validate();
26820 }
26821
26822 public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_result struct) throws org.apache.thrift.TException {
26823 struct.validate();
26824
26825 oprot.writeStructBegin(STRUCT_DESC);
26826 if (struct.success != null) {
26827 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26828 struct.success.write(oprot);
26829 oprot.writeFieldEnd();
26830 }
26831 if (struct.e != null) {
26832 oprot.writeFieldBegin(E_FIELD_DESC);
26833 struct.e.write(oprot);
26834 oprot.writeFieldEnd();
26835 }
26836 oprot.writeFieldStop();
26837 oprot.writeStructEnd();
26838 }
26839
26840 }
26841
26842 private static class diffFile_resultTupleSchemeFactory implements SchemeFactory {
26843 public diffFile_resultTupleScheme getScheme() {
26844 return new diffFile_resultTupleScheme();
26845 }
26846 }
26847
26848 private static class diffFile_resultTupleScheme extends TupleScheme<diffFile_result> {
26849
26850 @Override
26851 public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException {
26852 TTupleProtocol oprot = (TTupleProtocol) prot;
26853 BitSet optionals = new BitSet();
26854 if (struct.isSetSuccess()) {
26855 optionals.set(0);
26856 }
26857 if (struct.isSetE()) {
26858 optionals.set(1);
26859 }
26860 oprot.writeBitSet(optionals, 2);
26861 if (struct.isSetSuccess()) {
26862 struct.success.write(oprot);
26863 }
26864 if (struct.isSetE()) {
26865 struct.e.write(oprot);
26866 }
26867 }
26868
26869 @Override
26870 public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException {
26871 TTupleProtocol iprot = (TTupleProtocol) prot;
26872 BitSet incoming = iprot.readBitSet(2);
26873 if (incoming.get(0)) {
26874 struct.success = new DiffFileResult();
26875 struct.success.read(iprot);
26876 struct.setSuccessIsSet(true);
26877 }
26878 if (incoming.get(1)) {
26879 struct.e = new CentralDogmaException();
26880 struct.e.read(iprot);
26881 struct.setEIsSet(true);
26882 }
26883 }
26884 }
26885
26886 }
26887
26888 public static class mergeFiles_args implements org.apache.thrift.TBase<mergeFiles_args, mergeFiles_args._Fields>, java.io.Serializable, Cloneable, Comparable<mergeFiles_args> {
26889 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_args");
26890
26891 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
26892 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
26893 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
26894 private static final org.apache.thrift.protocol.TField MERGE_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("mergeQuery", org.apache.thrift.protocol.TType.STRUCT, (short)4);
26895
26896 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26897 static {
26898 schemes.put(StandardScheme.class, new mergeFiles_argsStandardSchemeFactory());
26899 schemes.put(TupleScheme.class, new mergeFiles_argsTupleSchemeFactory());
26900 }
26901
26902 public String projectName;
26903 public String repositoryName;
26904 public Revision revision;
26905 public MergeQuery mergeQuery;
26906
26907
26908 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26909 PROJECT_NAME((short)1, "projectName"),
26910 REPOSITORY_NAME((short)2, "repositoryName"),
26911 REVISION((short)3, "revision"),
26912 MERGE_QUERY((short)4, "mergeQuery");
26913
26914 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26915
26916 static {
26917 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26918 byName.put(field.getFieldName(), field);
26919 }
26920 }
26921
26922
26923
26924
26925 public static _Fields findByThriftId(int fieldId) {
26926 switch(fieldId) {
26927 case 1:
26928 return PROJECT_NAME;
26929 case 2:
26930 return REPOSITORY_NAME;
26931 case 3:
26932 return REVISION;
26933 case 4:
26934 return MERGE_QUERY;
26935 default:
26936 return null;
26937 }
26938 }
26939
26940
26941
26942
26943
26944 public static _Fields findByThriftIdOrThrow(int fieldId) {
26945 _Fields fields = findByThriftId(fieldId);
26946 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26947 return fields;
26948 }
26949
26950
26951
26952
26953 public static _Fields findByName(String name) {
26954 return byName.get(name);
26955 }
26956
26957 private final short _thriftId;
26958 private final String _fieldName;
26959
26960 _Fields(short thriftId, String fieldName) {
26961 _thriftId = thriftId;
26962 _fieldName = fieldName;
26963 }
26964
26965 public short getThriftFieldId() {
26966 return _thriftId;
26967 }
26968
26969 public String getFieldName() {
26970 return _fieldName;
26971 }
26972 }
26973
26974
26975 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26976 static {
26977 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26978 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
26979 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26980 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
26981 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26982 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
26983 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
26984 tmpMap.put(_Fields.MERGE_QUERY, new org.apache.thrift.meta_data.FieldMetaData("mergeQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
26985 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MergeQuery.class)));
26986 metaDataMap = Collections.unmodifiableMap(tmpMap);
26987 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeFiles_args.class, metaDataMap);
26988 }
26989
26990 public mergeFiles_args() {
26991 }
26992
26993 public mergeFiles_args(
26994 String projectName,
26995 String repositoryName,
26996 Revision revision,
26997 MergeQuery mergeQuery)
26998 {
26999 this();
27000 this.projectName = projectName;
27001 this.repositoryName = repositoryName;
27002 this.revision = revision;
27003 this.mergeQuery = mergeQuery;
27004 }
27005
27006
27007
27008
27009 public mergeFiles_args(mergeFiles_args other) {
27010 if (other.isSetProjectName()) {
27011 this.projectName = other.projectName;
27012 }
27013 if (other.isSetRepositoryName()) {
27014 this.repositoryName = other.repositoryName;
27015 }
27016 if (other.isSetRevision()) {
27017 this.revision = new Revision(other.revision);
27018 }
27019 if (other.isSetMergeQuery()) {
27020 this.mergeQuery = new MergeQuery(other.mergeQuery);
27021 }
27022 }
27023
27024 public mergeFiles_args deepCopy() {
27025 return new mergeFiles_args(this);
27026 }
27027
27028 @Override
27029 public void clear() {
27030 this.projectName = null;
27031 this.repositoryName = null;
27032 this.revision = null;
27033 this.mergeQuery = null;
27034 }
27035
27036 public String getProjectName() {
27037 return this.projectName;
27038 }
27039
27040 public mergeFiles_args setProjectName(String projectName) {
27041 this.projectName = projectName;
27042 return this;
27043 }
27044
27045 public void unsetProjectName() {
27046 this.projectName = null;
27047 }
27048
27049
27050 public boolean isSetProjectName() {
27051 return this.projectName != null;
27052 }
27053
27054 public void setProjectNameIsSet(boolean value) {
27055 if (!value) {
27056 this.projectName = null;
27057 }
27058 }
27059
27060 public String getRepositoryName() {
27061 return this.repositoryName;
27062 }
27063
27064 public mergeFiles_args setRepositoryName(String repositoryName) {
27065 this.repositoryName = repositoryName;
27066 return this;
27067 }
27068
27069 public void unsetRepositoryName() {
27070 this.repositoryName = null;
27071 }
27072
27073
27074 public boolean isSetRepositoryName() {
27075 return this.repositoryName != null;
27076 }
27077
27078 public void setRepositoryNameIsSet(boolean value) {
27079 if (!value) {
27080 this.repositoryName = null;
27081 }
27082 }
27083
27084 public Revision getRevision() {
27085 return this.revision;
27086 }
27087
27088 public mergeFiles_args setRevision(Revision revision) {
27089 this.revision = revision;
27090 return this;
27091 }
27092
27093 public void unsetRevision() {
27094 this.revision = null;
27095 }
27096
27097
27098 public boolean isSetRevision() {
27099 return this.revision != null;
27100 }
27101
27102 public void setRevisionIsSet(boolean value) {
27103 if (!value) {
27104 this.revision = null;
27105 }
27106 }
27107
27108 public MergeQuery getMergeQuery() {
27109 return this.mergeQuery;
27110 }
27111
27112 public mergeFiles_args setMergeQuery(MergeQuery mergeQuery) {
27113 this.mergeQuery = mergeQuery;
27114 return this;
27115 }
27116
27117 public void unsetMergeQuery() {
27118 this.mergeQuery = null;
27119 }
27120
27121
27122 public boolean isSetMergeQuery() {
27123 return this.mergeQuery != null;
27124 }
27125
27126 public void setMergeQueryIsSet(boolean value) {
27127 if (!value) {
27128 this.mergeQuery = null;
27129 }
27130 }
27131
27132 public void setFieldValue(_Fields field, Object value) {
27133 switch (field) {
27134 case PROJECT_NAME:
27135 if (value == null) {
27136 unsetProjectName();
27137 } else {
27138 setProjectName((String)value);
27139 }
27140 break;
27141
27142 case REPOSITORY_NAME:
27143 if (value == null) {
27144 unsetRepositoryName();
27145 } else {
27146 setRepositoryName((String)value);
27147 }
27148 break;
27149
27150 case REVISION:
27151 if (value == null) {
27152 unsetRevision();
27153 } else {
27154 setRevision((Revision)value);
27155 }
27156 break;
27157
27158 case MERGE_QUERY:
27159 if (value == null) {
27160 unsetMergeQuery();
27161 } else {
27162 setMergeQuery((MergeQuery)value);
27163 }
27164 break;
27165
27166 }
27167 }
27168
27169 public Object getFieldValue(_Fields field) {
27170 switch (field) {
27171 case PROJECT_NAME:
27172 return getProjectName();
27173
27174 case REPOSITORY_NAME:
27175 return getRepositoryName();
27176
27177 case REVISION:
27178 return getRevision();
27179
27180 case MERGE_QUERY:
27181 return getMergeQuery();
27182
27183 }
27184 throw new IllegalStateException();
27185 }
27186
27187
27188 public boolean isSet(_Fields field) {
27189 if (field == null) {
27190 throw new IllegalArgumentException();
27191 }
27192
27193 switch (field) {
27194 case PROJECT_NAME:
27195 return isSetProjectName();
27196 case REPOSITORY_NAME:
27197 return isSetRepositoryName();
27198 case REVISION:
27199 return isSetRevision();
27200 case MERGE_QUERY:
27201 return isSetMergeQuery();
27202 }
27203 throw new IllegalStateException();
27204 }
27205
27206 @Override
27207 public boolean equals(Object that) {
27208 if (that == null)
27209 return false;
27210 if (that instanceof mergeFiles_args)
27211 return this.equals((mergeFiles_args)that);
27212 return false;
27213 }
27214
27215 public boolean equals(mergeFiles_args that) {
27216 if (that == null)
27217 return false;
27218
27219 boolean this_present_projectName = true && this.isSetProjectName();
27220 boolean that_present_projectName = true && that.isSetProjectName();
27221 if (this_present_projectName || that_present_projectName) {
27222 if (!(this_present_projectName && that_present_projectName))
27223 return false;
27224 if (!this.projectName.equals(that.projectName))
27225 return false;
27226 }
27227
27228 boolean this_present_repositoryName = true && this.isSetRepositoryName();
27229 boolean that_present_repositoryName = true && that.isSetRepositoryName();
27230 if (this_present_repositoryName || that_present_repositoryName) {
27231 if (!(this_present_repositoryName && that_present_repositoryName))
27232 return false;
27233 if (!this.repositoryName.equals(that.repositoryName))
27234 return false;
27235 }
27236
27237 boolean this_present_revision = true && this.isSetRevision();
27238 boolean that_present_revision = true && that.isSetRevision();
27239 if (this_present_revision || that_present_revision) {
27240 if (!(this_present_revision && that_present_revision))
27241 return false;
27242 if (!this.revision.equals(that.revision))
27243 return false;
27244 }
27245
27246 boolean this_present_mergeQuery = true && this.isSetMergeQuery();
27247 boolean that_present_mergeQuery = true && that.isSetMergeQuery();
27248 if (this_present_mergeQuery || that_present_mergeQuery) {
27249 if (!(this_present_mergeQuery && that_present_mergeQuery))
27250 return false;
27251 if (!this.mergeQuery.equals(that.mergeQuery))
27252 return false;
27253 }
27254
27255 return true;
27256 }
27257
27258 @Override
27259 public int hashCode() {
27260 List<Object> list = new ArrayList<Object>();
27261
27262 boolean present_projectName = true && (isSetProjectName());
27263 list.add(present_projectName);
27264 if (present_projectName)
27265 list.add(projectName);
27266
27267 boolean present_repositoryName = true && (isSetRepositoryName());
27268 list.add(present_repositoryName);
27269 if (present_repositoryName)
27270 list.add(repositoryName);
27271
27272 boolean present_revision = true && (isSetRevision());
27273 list.add(present_revision);
27274 if (present_revision)
27275 list.add(revision);
27276
27277 boolean present_mergeQuery = true && (isSetMergeQuery());
27278 list.add(present_mergeQuery);
27279 if (present_mergeQuery)
27280 list.add(mergeQuery);
27281
27282 return list.hashCode();
27283 }
27284
27285 @Override
27286 public int compareTo(mergeFiles_args other) {
27287 if (!getClass().equals(other.getClass())) {
27288 return getClass().getName().compareTo(other.getClass().getName());
27289 }
27290
27291 int lastComparison = 0;
27292
27293 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
27294 if (lastComparison != 0) {
27295 return lastComparison;
27296 }
27297 if (isSetProjectName()) {
27298 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
27299 if (lastComparison != 0) {
27300 return lastComparison;
27301 }
27302 }
27303 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
27304 if (lastComparison != 0) {
27305 return lastComparison;
27306 }
27307 if (isSetRepositoryName()) {
27308 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
27309 if (lastComparison != 0) {
27310 return lastComparison;
27311 }
27312 }
27313 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
27314 if (lastComparison != 0) {
27315 return lastComparison;
27316 }
27317 if (isSetRevision()) {
27318 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
27319 if (lastComparison != 0) {
27320 return lastComparison;
27321 }
27322 }
27323 lastComparison = Boolean.valueOf(isSetMergeQuery()).compareTo(other.isSetMergeQuery());
27324 if (lastComparison != 0) {
27325 return lastComparison;
27326 }
27327 if (isSetMergeQuery()) {
27328 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mergeQuery, other.mergeQuery);
27329 if (lastComparison != 0) {
27330 return lastComparison;
27331 }
27332 }
27333 return 0;
27334 }
27335
27336 public _Fields fieldForId(int fieldId) {
27337 return _Fields.findByThriftId(fieldId);
27338 }
27339
27340 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27341 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27342 }
27343
27344 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27345 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27346 }
27347
27348 @Override
27349 public String toString() {
27350 StringBuilder sb = new StringBuilder("mergeFiles_args(");
27351 boolean first = true;
27352
27353 sb.append("projectName:");
27354 if (this.projectName == null) {
27355 sb.append("null");
27356 } else {
27357 sb.append(this.projectName);
27358 }
27359 first = false;
27360 if (!first) sb.append(", ");
27361 sb.append("repositoryName:");
27362 if (this.repositoryName == null) {
27363 sb.append("null");
27364 } else {
27365 sb.append(this.repositoryName);
27366 }
27367 first = false;
27368 if (!first) sb.append(", ");
27369 sb.append("revision:");
27370 if (this.revision == null) {
27371 sb.append("null");
27372 } else {
27373 sb.append(this.revision);
27374 }
27375 first = false;
27376 if (!first) sb.append(", ");
27377 sb.append("mergeQuery:");
27378 if (this.mergeQuery == null) {
27379 sb.append("null");
27380 } else {
27381 sb.append(this.mergeQuery);
27382 }
27383 first = false;
27384 sb.append(")");
27385 return sb.toString();
27386 }
27387
27388 public void validate() throws org.apache.thrift.TException {
27389
27390
27391 if (revision != null) {
27392 revision.validate();
27393 }
27394 if (mergeQuery != null) {
27395 mergeQuery.validate();
27396 }
27397 }
27398
27399 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27400 try {
27401 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27402 } catch (org.apache.thrift.TException te) {
27403 throw new java.io.IOException(te);
27404 }
27405 }
27406
27407 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27408 try {
27409 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27410 } catch (org.apache.thrift.TException te) {
27411 throw new java.io.IOException(te);
27412 }
27413 }
27414
27415 private static class mergeFiles_argsStandardSchemeFactory implements SchemeFactory {
27416 public mergeFiles_argsStandardScheme getScheme() {
27417 return new mergeFiles_argsStandardScheme();
27418 }
27419 }
27420
27421 private static class mergeFiles_argsStandardScheme extends StandardScheme<mergeFiles_args> {
27422
27423 public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_args struct) throws org.apache.thrift.TException {
27424 org.apache.thrift.protocol.TField schemeField;
27425 iprot.readStructBegin();
27426 while (true)
27427 {
27428 schemeField = iprot.readFieldBegin();
27429 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
27430 break;
27431 }
27432 switch (schemeField.id) {
27433 case 1:
27434 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
27435 struct.projectName = iprot.readString();
27436 struct.setProjectNameIsSet(true);
27437 } else {
27438 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27439 }
27440 break;
27441 case 2:
27442 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
27443 struct.repositoryName = iprot.readString();
27444 struct.setRepositoryNameIsSet(true);
27445 } else {
27446 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27447 }
27448 break;
27449 case 3:
27450 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27451 struct.revision = new Revision();
27452 struct.revision.read(iprot);
27453 struct.setRevisionIsSet(true);
27454 } else {
27455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27456 }
27457 break;
27458 case 4:
27459 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27460 struct.mergeQuery = new MergeQuery();
27461 struct.mergeQuery.read(iprot);
27462 struct.setMergeQueryIsSet(true);
27463 } else {
27464 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27465 }
27466 break;
27467 default:
27468 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27469 }
27470 iprot.readFieldEnd();
27471 }
27472 iprot.readStructEnd();
27473
27474
27475 struct.validate();
27476 }
27477
27478 public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_args struct) throws org.apache.thrift.TException {
27479 struct.validate();
27480
27481 oprot.writeStructBegin(STRUCT_DESC);
27482 if (struct.projectName != null) {
27483 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
27484 oprot.writeString(struct.projectName);
27485 oprot.writeFieldEnd();
27486 }
27487 if (struct.repositoryName != null) {
27488 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
27489 oprot.writeString(struct.repositoryName);
27490 oprot.writeFieldEnd();
27491 }
27492 if (struct.revision != null) {
27493 oprot.writeFieldBegin(REVISION_FIELD_DESC);
27494 struct.revision.write(oprot);
27495 oprot.writeFieldEnd();
27496 }
27497 if (struct.mergeQuery != null) {
27498 oprot.writeFieldBegin(MERGE_QUERY_FIELD_DESC);
27499 struct.mergeQuery.write(oprot);
27500 oprot.writeFieldEnd();
27501 }
27502 oprot.writeFieldStop();
27503 oprot.writeStructEnd();
27504 }
27505
27506 }
27507
27508 private static class mergeFiles_argsTupleSchemeFactory implements SchemeFactory {
27509 public mergeFiles_argsTupleScheme getScheme() {
27510 return new mergeFiles_argsTupleScheme();
27511 }
27512 }
27513
27514 private static class mergeFiles_argsTupleScheme extends TupleScheme<mergeFiles_args> {
27515
27516 @Override
27517 public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException {
27518 TTupleProtocol oprot = (TTupleProtocol) prot;
27519 BitSet optionals = new BitSet();
27520 if (struct.isSetProjectName()) {
27521 optionals.set(0);
27522 }
27523 if (struct.isSetRepositoryName()) {
27524 optionals.set(1);
27525 }
27526 if (struct.isSetRevision()) {
27527 optionals.set(2);
27528 }
27529 if (struct.isSetMergeQuery()) {
27530 optionals.set(3);
27531 }
27532 oprot.writeBitSet(optionals, 4);
27533 if (struct.isSetProjectName()) {
27534 oprot.writeString(struct.projectName);
27535 }
27536 if (struct.isSetRepositoryName()) {
27537 oprot.writeString(struct.repositoryName);
27538 }
27539 if (struct.isSetRevision()) {
27540 struct.revision.write(oprot);
27541 }
27542 if (struct.isSetMergeQuery()) {
27543 struct.mergeQuery.write(oprot);
27544 }
27545 }
27546
27547 @Override
27548 public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException {
27549 TTupleProtocol iprot = (TTupleProtocol) prot;
27550 BitSet incoming = iprot.readBitSet(4);
27551 if (incoming.get(0)) {
27552 struct.projectName = iprot.readString();
27553 struct.setProjectNameIsSet(true);
27554 }
27555 if (incoming.get(1)) {
27556 struct.repositoryName = iprot.readString();
27557 struct.setRepositoryNameIsSet(true);
27558 }
27559 if (incoming.get(2)) {
27560 struct.revision = new Revision();
27561 struct.revision.read(iprot);
27562 struct.setRevisionIsSet(true);
27563 }
27564 if (incoming.get(3)) {
27565 struct.mergeQuery = new MergeQuery();
27566 struct.mergeQuery.read(iprot);
27567 struct.setMergeQueryIsSet(true);
27568 }
27569 }
27570 }
27571
27572 }
27573
27574 public static class mergeFiles_result implements org.apache.thrift.TBase<mergeFiles_result, mergeFiles_result._Fields>, java.io.Serializable, Cloneable, Comparable<mergeFiles_result> {
27575 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_result");
27576
27577 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
27578 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27579
27580 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
27581 static {
27582 schemes.put(StandardScheme.class, new mergeFiles_resultStandardSchemeFactory());
27583 schemes.put(TupleScheme.class, new mergeFiles_resultTupleSchemeFactory());
27584 }
27585
27586 public MergedEntry success;
27587 public CentralDogmaException e;
27588
27589
27590 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27591 SUCCESS((short)0, "success"),
27592 E((short)1, "e");
27593
27594 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27595
27596 static {
27597 for (_Fields field : EnumSet.allOf(_Fields.class)) {
27598 byName.put(field.getFieldName(), field);
27599 }
27600 }
27601
27602
27603
27604
27605 public static _Fields findByThriftId(int fieldId) {
27606 switch(fieldId) {
27607 case 0:
27608 return SUCCESS;
27609 case 1:
27610 return E;
27611 default:
27612 return null;
27613 }
27614 }
27615
27616
27617
27618
27619
27620 public static _Fields findByThriftIdOrThrow(int fieldId) {
27621 _Fields fields = findByThriftId(fieldId);
27622 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27623 return fields;
27624 }
27625
27626
27627
27628
27629 public static _Fields findByName(String name) {
27630 return byName.get(name);
27631 }
27632
27633 private final short _thriftId;
27634 private final String _fieldName;
27635
27636 _Fields(short thriftId, String fieldName) {
27637 _thriftId = thriftId;
27638 _fieldName = fieldName;
27639 }
27640
27641 public short getThriftFieldId() {
27642 return _thriftId;
27643 }
27644
27645 public String getFieldName() {
27646 return _fieldName;
27647 }
27648 }
27649
27650
27651 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27652 static {
27653 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27654 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
27655 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MergedEntry.class)));
27656 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
27657 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27658 metaDataMap = Collections.unmodifiableMap(tmpMap);
27659 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeFiles_result.class, metaDataMap);
27660 }
27661
27662 public mergeFiles_result() {
27663 }
27664
27665 public mergeFiles_result(
27666 MergedEntry success,
27667 CentralDogmaException e)
27668 {
27669 this();
27670 this.success = success;
27671 this.e = e;
27672 }
27673
27674
27675
27676
27677 public mergeFiles_result(mergeFiles_result other) {
27678 if (other.isSetSuccess()) {
27679 this.success = new MergedEntry(other.success);
27680 }
27681 if (other.isSetE()) {
27682 this.e = new CentralDogmaException(other.e);
27683 }
27684 }
27685
27686 public mergeFiles_result deepCopy() {
27687 return new mergeFiles_result(this);
27688 }
27689
27690 @Override
27691 public void clear() {
27692 this.success = null;
27693 this.e = null;
27694 }
27695
27696 public MergedEntry getSuccess() {
27697 return this.success;
27698 }
27699
27700 public mergeFiles_result setSuccess(MergedEntry success) {
27701 this.success = success;
27702 return this;
27703 }
27704
27705 public void unsetSuccess() {
27706 this.success = null;
27707 }
27708
27709
27710 public boolean isSetSuccess() {
27711 return this.success != null;
27712 }
27713
27714 public void setSuccessIsSet(boolean value) {
27715 if (!value) {
27716 this.success = null;
27717 }
27718 }
27719
27720 public CentralDogmaException getE() {
27721 return this.e;
27722 }
27723
27724 public mergeFiles_result setE(CentralDogmaException e) {
27725 this.e = e;
27726 return this;
27727 }
27728
27729 public void unsetE() {
27730 this.e = null;
27731 }
27732
27733
27734 public boolean isSetE() {
27735 return this.e != null;
27736 }
27737
27738 public void setEIsSet(boolean value) {
27739 if (!value) {
27740 this.e = null;
27741 }
27742 }
27743
27744 public void setFieldValue(_Fields field, Object value) {
27745 switch (field) {
27746 case SUCCESS:
27747 if (value == null) {
27748 unsetSuccess();
27749 } else {
27750 setSuccess((MergedEntry)value);
27751 }
27752 break;
27753
27754 case E:
27755 if (value == null) {
27756 unsetE();
27757 } else {
27758 setE((CentralDogmaException)value);
27759 }
27760 break;
27761
27762 }
27763 }
27764
27765 public Object getFieldValue(_Fields field) {
27766 switch (field) {
27767 case SUCCESS:
27768 return getSuccess();
27769
27770 case E:
27771 return getE();
27772
27773 }
27774 throw new IllegalStateException();
27775 }
27776
27777
27778 public boolean isSet(_Fields field) {
27779 if (field == null) {
27780 throw new IllegalArgumentException();
27781 }
27782
27783 switch (field) {
27784 case SUCCESS:
27785 return isSetSuccess();
27786 case E:
27787 return isSetE();
27788 }
27789 throw new IllegalStateException();
27790 }
27791
27792 @Override
27793 public boolean equals(Object that) {
27794 if (that == null)
27795 return false;
27796 if (that instanceof mergeFiles_result)
27797 return this.equals((mergeFiles_result)that);
27798 return false;
27799 }
27800
27801 public boolean equals(mergeFiles_result that) {
27802 if (that == null)
27803 return false;
27804
27805 boolean this_present_success = true && this.isSetSuccess();
27806 boolean that_present_success = true && that.isSetSuccess();
27807 if (this_present_success || that_present_success) {
27808 if (!(this_present_success && that_present_success))
27809 return false;
27810 if (!this.success.equals(that.success))
27811 return false;
27812 }
27813
27814 boolean this_present_e = true && this.isSetE();
27815 boolean that_present_e = true && that.isSetE();
27816 if (this_present_e || that_present_e) {
27817 if (!(this_present_e && that_present_e))
27818 return false;
27819 if (!this.e.equals(that.e))
27820 return false;
27821 }
27822
27823 return true;
27824 }
27825
27826 @Override
27827 public int hashCode() {
27828 List<Object> list = new ArrayList<Object>();
27829
27830 boolean present_success = true && (isSetSuccess());
27831 list.add(present_success);
27832 if (present_success)
27833 list.add(success);
27834
27835 boolean present_e = true && (isSetE());
27836 list.add(present_e);
27837 if (present_e)
27838 list.add(e);
27839
27840 return list.hashCode();
27841 }
27842
27843 @Override
27844 public int compareTo(mergeFiles_result other) {
27845 if (!getClass().equals(other.getClass())) {
27846 return getClass().getName().compareTo(other.getClass().getName());
27847 }
27848
27849 int lastComparison = 0;
27850
27851 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
27852 if (lastComparison != 0) {
27853 return lastComparison;
27854 }
27855 if (isSetSuccess()) {
27856 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
27857 if (lastComparison != 0) {
27858 return lastComparison;
27859 }
27860 }
27861 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
27862 if (lastComparison != 0) {
27863 return lastComparison;
27864 }
27865 if (isSetE()) {
27866 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
27867 if (lastComparison != 0) {
27868 return lastComparison;
27869 }
27870 }
27871 return 0;
27872 }
27873
27874 public _Fields fieldForId(int fieldId) {
27875 return _Fields.findByThriftId(fieldId);
27876 }
27877
27878 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27879 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27880 }
27881
27882 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27883 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27884 }
27885
27886 @Override
27887 public String toString() {
27888 StringBuilder sb = new StringBuilder("mergeFiles_result(");
27889 boolean first = true;
27890
27891 sb.append("success:");
27892 if (this.success == null) {
27893 sb.append("null");
27894 } else {
27895 sb.append(this.success);
27896 }
27897 first = false;
27898 if (!first) sb.append(", ");
27899 sb.append("e:");
27900 if (this.e == null) {
27901 sb.append("null");
27902 } else {
27903 sb.append(this.e);
27904 }
27905 first = false;
27906 sb.append(")");
27907 return sb.toString();
27908 }
27909
27910 public void validate() throws org.apache.thrift.TException {
27911
27912
27913 if (success != null) {
27914 success.validate();
27915 }
27916 }
27917
27918 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27919 try {
27920 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27921 } catch (org.apache.thrift.TException te) {
27922 throw new java.io.IOException(te);
27923 }
27924 }
27925
27926 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27927 try {
27928 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27929 } catch (org.apache.thrift.TException te) {
27930 throw new java.io.IOException(te);
27931 }
27932 }
27933
27934 private static class mergeFiles_resultStandardSchemeFactory implements SchemeFactory {
27935 public mergeFiles_resultStandardScheme getScheme() {
27936 return new mergeFiles_resultStandardScheme();
27937 }
27938 }
27939
27940 private static class mergeFiles_resultStandardScheme extends StandardScheme<mergeFiles_result> {
27941
27942 public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_result struct) throws org.apache.thrift.TException {
27943 org.apache.thrift.protocol.TField schemeField;
27944 iprot.readStructBegin();
27945 while (true)
27946 {
27947 schemeField = iprot.readFieldBegin();
27948 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
27949 break;
27950 }
27951 switch (schemeField.id) {
27952 case 0:
27953 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27954 struct.success = new MergedEntry();
27955 struct.success.read(iprot);
27956 struct.setSuccessIsSet(true);
27957 } else {
27958 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27959 }
27960 break;
27961 case 1:
27962 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
27963 struct.e = new CentralDogmaException();
27964 struct.e.read(iprot);
27965 struct.setEIsSet(true);
27966 } else {
27967 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27968 }
27969 break;
27970 default:
27971 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27972 }
27973 iprot.readFieldEnd();
27974 }
27975 iprot.readStructEnd();
27976
27977
27978 struct.validate();
27979 }
27980
27981 public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_result struct) throws org.apache.thrift.TException {
27982 struct.validate();
27983
27984 oprot.writeStructBegin(STRUCT_DESC);
27985 if (struct.success != null) {
27986 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27987 struct.success.write(oprot);
27988 oprot.writeFieldEnd();
27989 }
27990 if (struct.e != null) {
27991 oprot.writeFieldBegin(E_FIELD_DESC);
27992 struct.e.write(oprot);
27993 oprot.writeFieldEnd();
27994 }
27995 oprot.writeFieldStop();
27996 oprot.writeStructEnd();
27997 }
27998
27999 }
28000
28001 private static class mergeFiles_resultTupleSchemeFactory implements SchemeFactory {
28002 public mergeFiles_resultTupleScheme getScheme() {
28003 return new mergeFiles_resultTupleScheme();
28004 }
28005 }
28006
28007 private static class mergeFiles_resultTupleScheme extends TupleScheme<mergeFiles_result> {
28008
28009 @Override
28010 public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException {
28011 TTupleProtocol oprot = (TTupleProtocol) prot;
28012 BitSet optionals = new BitSet();
28013 if (struct.isSetSuccess()) {
28014 optionals.set(0);
28015 }
28016 if (struct.isSetE()) {
28017 optionals.set(1);
28018 }
28019 oprot.writeBitSet(optionals, 2);
28020 if (struct.isSetSuccess()) {
28021 struct.success.write(oprot);
28022 }
28023 if (struct.isSetE()) {
28024 struct.e.write(oprot);
28025 }
28026 }
28027
28028 @Override
28029 public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException {
28030 TTupleProtocol iprot = (TTupleProtocol) prot;
28031 BitSet incoming = iprot.readBitSet(2);
28032 if (incoming.get(0)) {
28033 struct.success = new MergedEntry();
28034 struct.success.read(iprot);
28035 struct.setSuccessIsSet(true);
28036 }
28037 if (incoming.get(1)) {
28038 struct.e = new CentralDogmaException();
28039 struct.e.read(iprot);
28040 struct.setEIsSet(true);
28041 }
28042 }
28043 }
28044
28045 }
28046
28047 public static class watchRepository_args implements org.apache.thrift.TBase<watchRepository_args, watchRepository_args._Fields>, java.io.Serializable, Cloneable, Comparable<watchRepository_args> {
28048 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_args");
28049
28050 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
28051 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
28052 private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
28053 private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4);
28054 private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5);
28055
28056 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28057 static {
28058 schemes.put(StandardScheme.class, new watchRepository_argsStandardSchemeFactory());
28059 schemes.put(TupleScheme.class, new watchRepository_argsTupleSchemeFactory());
28060 }
28061
28062 public String projectName;
28063 public String repositoryName;
28064 public Revision lastKnownRevision;
28065 public String pathPattern;
28066 public long timeoutMillis;
28067
28068
28069 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28070 PROJECT_NAME((short)1, "projectName"),
28071 REPOSITORY_NAME((short)2, "repositoryName"),
28072 LAST_KNOWN_REVISION((short)3, "lastKnownRevision"),
28073 PATH_PATTERN((short)4, "pathPattern"),
28074 TIMEOUT_MILLIS((short)5, "timeoutMillis");
28075
28076 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28077
28078 static {
28079 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28080 byName.put(field.getFieldName(), field);
28081 }
28082 }
28083
28084
28085
28086
28087 public static _Fields findByThriftId(int fieldId) {
28088 switch(fieldId) {
28089 case 1:
28090 return PROJECT_NAME;
28091 case 2:
28092 return REPOSITORY_NAME;
28093 case 3:
28094 return LAST_KNOWN_REVISION;
28095 case 4:
28096 return PATH_PATTERN;
28097 case 5:
28098 return TIMEOUT_MILLIS;
28099 default:
28100 return null;
28101 }
28102 }
28103
28104
28105
28106
28107
28108 public static _Fields findByThriftIdOrThrow(int fieldId) {
28109 _Fields fields = findByThriftId(fieldId);
28110 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28111 return fields;
28112 }
28113
28114
28115
28116
28117 public static _Fields findByName(String name) {
28118 return byName.get(name);
28119 }
28120
28121 private final short _thriftId;
28122 private final String _fieldName;
28123
28124 _Fields(short thriftId, String fieldName) {
28125 _thriftId = thriftId;
28126 _fieldName = fieldName;
28127 }
28128
28129 public short getThriftFieldId() {
28130 return _thriftId;
28131 }
28132
28133 public String getFieldName() {
28134 return _fieldName;
28135 }
28136 }
28137
28138
28139 private static final int __TIMEOUTMILLIS_ISSET_ID = 0;
28140 private byte __isset_bitfield = 0;
28141 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28142 static {
28143 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28144 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
28145 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28146 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
28147 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28148 tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
28149 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
28150 tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
28151 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28152 tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT,
28153 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28154 metaDataMap = Collections.unmodifiableMap(tmpMap);
28155 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchRepository_args.class, metaDataMap);
28156 }
28157
28158 public watchRepository_args() {
28159 }
28160
28161 public watchRepository_args(
28162 String projectName,
28163 String repositoryName,
28164 Revision lastKnownRevision,
28165 String pathPattern,
28166 long timeoutMillis)
28167 {
28168 this();
28169 this.projectName = projectName;
28170 this.repositoryName = repositoryName;
28171 this.lastKnownRevision = lastKnownRevision;
28172 this.pathPattern = pathPattern;
28173 this.timeoutMillis = timeoutMillis;
28174 setTimeoutMillisIsSet(true);
28175 }
28176
28177
28178
28179
28180 public watchRepository_args(watchRepository_args other) {
28181 __isset_bitfield = other.__isset_bitfield;
28182 if (other.isSetProjectName()) {
28183 this.projectName = other.projectName;
28184 }
28185 if (other.isSetRepositoryName()) {
28186 this.repositoryName = other.repositoryName;
28187 }
28188 if (other.isSetLastKnownRevision()) {
28189 this.lastKnownRevision = new Revision(other.lastKnownRevision);
28190 }
28191 if (other.isSetPathPattern()) {
28192 this.pathPattern = other.pathPattern;
28193 }
28194 this.timeoutMillis = other.timeoutMillis;
28195 }
28196
28197 public watchRepository_args deepCopy() {
28198 return new watchRepository_args(this);
28199 }
28200
28201 @Override
28202 public void clear() {
28203 this.projectName = null;
28204 this.repositoryName = null;
28205 this.lastKnownRevision = null;
28206 this.pathPattern = null;
28207 setTimeoutMillisIsSet(false);
28208 this.timeoutMillis = 0;
28209 }
28210
28211 public String getProjectName() {
28212 return this.projectName;
28213 }
28214
28215 public watchRepository_args setProjectName(String projectName) {
28216 this.projectName = projectName;
28217 return this;
28218 }
28219
28220 public void unsetProjectName() {
28221 this.projectName = null;
28222 }
28223
28224
28225 public boolean isSetProjectName() {
28226 return this.projectName != null;
28227 }
28228
28229 public void setProjectNameIsSet(boolean value) {
28230 if (!value) {
28231 this.projectName = null;
28232 }
28233 }
28234
28235 public String getRepositoryName() {
28236 return this.repositoryName;
28237 }
28238
28239 public watchRepository_args setRepositoryName(String repositoryName) {
28240 this.repositoryName = repositoryName;
28241 return this;
28242 }
28243
28244 public void unsetRepositoryName() {
28245 this.repositoryName = null;
28246 }
28247
28248
28249 public boolean isSetRepositoryName() {
28250 return this.repositoryName != null;
28251 }
28252
28253 public void setRepositoryNameIsSet(boolean value) {
28254 if (!value) {
28255 this.repositoryName = null;
28256 }
28257 }
28258
28259 public Revision getLastKnownRevision() {
28260 return this.lastKnownRevision;
28261 }
28262
28263 public watchRepository_args setLastKnownRevision(Revision lastKnownRevision) {
28264 this.lastKnownRevision = lastKnownRevision;
28265 return this;
28266 }
28267
28268 public void unsetLastKnownRevision() {
28269 this.lastKnownRevision = null;
28270 }
28271
28272
28273 public boolean isSetLastKnownRevision() {
28274 return this.lastKnownRevision != null;
28275 }
28276
28277 public void setLastKnownRevisionIsSet(boolean value) {
28278 if (!value) {
28279 this.lastKnownRevision = null;
28280 }
28281 }
28282
28283 public String getPathPattern() {
28284 return this.pathPattern;
28285 }
28286
28287 public watchRepository_args setPathPattern(String pathPattern) {
28288 this.pathPattern = pathPattern;
28289 return this;
28290 }
28291
28292 public void unsetPathPattern() {
28293 this.pathPattern = null;
28294 }
28295
28296
28297 public boolean isSetPathPattern() {
28298 return this.pathPattern != null;
28299 }
28300
28301 public void setPathPatternIsSet(boolean value) {
28302 if (!value) {
28303 this.pathPattern = null;
28304 }
28305 }
28306
28307 public long getTimeoutMillis() {
28308 return this.timeoutMillis;
28309 }
28310
28311 public watchRepository_args setTimeoutMillis(long timeoutMillis) {
28312 this.timeoutMillis = timeoutMillis;
28313 setTimeoutMillisIsSet(true);
28314 return this;
28315 }
28316
28317 public void unsetTimeoutMillis() {
28318 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
28319 }
28320
28321
28322 public boolean isSetTimeoutMillis() {
28323 return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
28324 }
28325
28326 public void setTimeoutMillisIsSet(boolean value) {
28327 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value);
28328 }
28329
28330 public void setFieldValue(_Fields field, Object value) {
28331 switch (field) {
28332 case PROJECT_NAME:
28333 if (value == null) {
28334 unsetProjectName();
28335 } else {
28336 setProjectName((String)value);
28337 }
28338 break;
28339
28340 case REPOSITORY_NAME:
28341 if (value == null) {
28342 unsetRepositoryName();
28343 } else {
28344 setRepositoryName((String)value);
28345 }
28346 break;
28347
28348 case LAST_KNOWN_REVISION:
28349 if (value == null) {
28350 unsetLastKnownRevision();
28351 } else {
28352 setLastKnownRevision((Revision)value);
28353 }
28354 break;
28355
28356 case PATH_PATTERN:
28357 if (value == null) {
28358 unsetPathPattern();
28359 } else {
28360 setPathPattern((String)value);
28361 }
28362 break;
28363
28364 case TIMEOUT_MILLIS:
28365 if (value == null) {
28366 unsetTimeoutMillis();
28367 } else {
28368 setTimeoutMillis((Long)value);
28369 }
28370 break;
28371
28372 }
28373 }
28374
28375 public Object getFieldValue(_Fields field) {
28376 switch (field) {
28377 case PROJECT_NAME:
28378 return getProjectName();
28379
28380 case REPOSITORY_NAME:
28381 return getRepositoryName();
28382
28383 case LAST_KNOWN_REVISION:
28384 return getLastKnownRevision();
28385
28386 case PATH_PATTERN:
28387 return getPathPattern();
28388
28389 case TIMEOUT_MILLIS:
28390 return getTimeoutMillis();
28391
28392 }
28393 throw new IllegalStateException();
28394 }
28395
28396
28397 public boolean isSet(_Fields field) {
28398 if (field == null) {
28399 throw new IllegalArgumentException();
28400 }
28401
28402 switch (field) {
28403 case PROJECT_NAME:
28404 return isSetProjectName();
28405 case REPOSITORY_NAME:
28406 return isSetRepositoryName();
28407 case LAST_KNOWN_REVISION:
28408 return isSetLastKnownRevision();
28409 case PATH_PATTERN:
28410 return isSetPathPattern();
28411 case TIMEOUT_MILLIS:
28412 return isSetTimeoutMillis();
28413 }
28414 throw new IllegalStateException();
28415 }
28416
28417 @Override
28418 public boolean equals(Object that) {
28419 if (that == null)
28420 return false;
28421 if (that instanceof watchRepository_args)
28422 return this.equals((watchRepository_args)that);
28423 return false;
28424 }
28425
28426 public boolean equals(watchRepository_args that) {
28427 if (that == null)
28428 return false;
28429
28430 boolean this_present_projectName = true && this.isSetProjectName();
28431 boolean that_present_projectName = true && that.isSetProjectName();
28432 if (this_present_projectName || that_present_projectName) {
28433 if (!(this_present_projectName && that_present_projectName))
28434 return false;
28435 if (!this.projectName.equals(that.projectName))
28436 return false;
28437 }
28438
28439 boolean this_present_repositoryName = true && this.isSetRepositoryName();
28440 boolean that_present_repositoryName = true && that.isSetRepositoryName();
28441 if (this_present_repositoryName || that_present_repositoryName) {
28442 if (!(this_present_repositoryName && that_present_repositoryName))
28443 return false;
28444 if (!this.repositoryName.equals(that.repositoryName))
28445 return false;
28446 }
28447
28448 boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision();
28449 boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision();
28450 if (this_present_lastKnownRevision || that_present_lastKnownRevision) {
28451 if (!(this_present_lastKnownRevision && that_present_lastKnownRevision))
28452 return false;
28453 if (!this.lastKnownRevision.equals(that.lastKnownRevision))
28454 return false;
28455 }
28456
28457 boolean this_present_pathPattern = true && this.isSetPathPattern();
28458 boolean that_present_pathPattern = true && that.isSetPathPattern();
28459 if (this_present_pathPattern || that_present_pathPattern) {
28460 if (!(this_present_pathPattern && that_present_pathPattern))
28461 return false;
28462 if (!this.pathPattern.equals(that.pathPattern))
28463 return false;
28464 }
28465
28466 boolean this_present_timeoutMillis = true;
28467 boolean that_present_timeoutMillis = true;
28468 if (this_present_timeoutMillis || that_present_timeoutMillis) {
28469 if (!(this_present_timeoutMillis && that_present_timeoutMillis))
28470 return false;
28471 if (this.timeoutMillis != that.timeoutMillis)
28472 return false;
28473 }
28474
28475 return true;
28476 }
28477
28478 @Override
28479 public int hashCode() {
28480 List<Object> list = new ArrayList<Object>();
28481
28482 boolean present_projectName = true && (isSetProjectName());
28483 list.add(present_projectName);
28484 if (present_projectName)
28485 list.add(projectName);
28486
28487 boolean present_repositoryName = true && (isSetRepositoryName());
28488 list.add(present_repositoryName);
28489 if (present_repositoryName)
28490 list.add(repositoryName);
28491
28492 boolean present_lastKnownRevision = true && (isSetLastKnownRevision());
28493 list.add(present_lastKnownRevision);
28494 if (present_lastKnownRevision)
28495 list.add(lastKnownRevision);
28496
28497 boolean present_pathPattern = true && (isSetPathPattern());
28498 list.add(present_pathPattern);
28499 if (present_pathPattern)
28500 list.add(pathPattern);
28501
28502 boolean present_timeoutMillis = true;
28503 list.add(present_timeoutMillis);
28504 if (present_timeoutMillis)
28505 list.add(timeoutMillis);
28506
28507 return list.hashCode();
28508 }
28509
28510 @Override
28511 public int compareTo(watchRepository_args other) {
28512 if (!getClass().equals(other.getClass())) {
28513 return getClass().getName().compareTo(other.getClass().getName());
28514 }
28515
28516 int lastComparison = 0;
28517
28518 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
28519 if (lastComparison != 0) {
28520 return lastComparison;
28521 }
28522 if (isSetProjectName()) {
28523 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
28524 if (lastComparison != 0) {
28525 return lastComparison;
28526 }
28527 }
28528 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
28529 if (lastComparison != 0) {
28530 return lastComparison;
28531 }
28532 if (isSetRepositoryName()) {
28533 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
28534 if (lastComparison != 0) {
28535 return lastComparison;
28536 }
28537 }
28538 lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision());
28539 if (lastComparison != 0) {
28540 return lastComparison;
28541 }
28542 if (isSetLastKnownRevision()) {
28543 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision);
28544 if (lastComparison != 0) {
28545 return lastComparison;
28546 }
28547 }
28548 lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern());
28549 if (lastComparison != 0) {
28550 return lastComparison;
28551 }
28552 if (isSetPathPattern()) {
28553 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern);
28554 if (lastComparison != 0) {
28555 return lastComparison;
28556 }
28557 }
28558 lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis());
28559 if (lastComparison != 0) {
28560 return lastComparison;
28561 }
28562 if (isSetTimeoutMillis()) {
28563 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis);
28564 if (lastComparison != 0) {
28565 return lastComparison;
28566 }
28567 }
28568 return 0;
28569 }
28570
28571 public _Fields fieldForId(int fieldId) {
28572 return _Fields.findByThriftId(fieldId);
28573 }
28574
28575 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28576 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28577 }
28578
28579 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28580 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28581 }
28582
28583 @Override
28584 public String toString() {
28585 StringBuilder sb = new StringBuilder("watchRepository_args(");
28586 boolean first = true;
28587
28588 sb.append("projectName:");
28589 if (this.projectName == null) {
28590 sb.append("null");
28591 } else {
28592 sb.append(this.projectName);
28593 }
28594 first = false;
28595 if (!first) sb.append(", ");
28596 sb.append("repositoryName:");
28597 if (this.repositoryName == null) {
28598 sb.append("null");
28599 } else {
28600 sb.append(this.repositoryName);
28601 }
28602 first = false;
28603 if (!first) sb.append(", ");
28604 sb.append("lastKnownRevision:");
28605 if (this.lastKnownRevision == null) {
28606 sb.append("null");
28607 } else {
28608 sb.append(this.lastKnownRevision);
28609 }
28610 first = false;
28611 if (!first) sb.append(", ");
28612 sb.append("pathPattern:");
28613 if (this.pathPattern == null) {
28614 sb.append("null");
28615 } else {
28616 sb.append(this.pathPattern);
28617 }
28618 first = false;
28619 if (!first) sb.append(", ");
28620 sb.append("timeoutMillis:");
28621 sb.append(this.timeoutMillis);
28622 first = false;
28623 sb.append(")");
28624 return sb.toString();
28625 }
28626
28627 public void validate() throws org.apache.thrift.TException {
28628
28629
28630 if (lastKnownRevision != null) {
28631 lastKnownRevision.validate();
28632 }
28633 }
28634
28635 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28636 try {
28637 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28638 } catch (org.apache.thrift.TException te) {
28639 throw new java.io.IOException(te);
28640 }
28641 }
28642
28643 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28644 try {
28645
28646 __isset_bitfield = 0;
28647 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28648 } catch (org.apache.thrift.TException te) {
28649 throw new java.io.IOException(te);
28650 }
28651 }
28652
28653 private static class watchRepository_argsStandardSchemeFactory implements SchemeFactory {
28654 public watchRepository_argsStandardScheme getScheme() {
28655 return new watchRepository_argsStandardScheme();
28656 }
28657 }
28658
28659 private static class watchRepository_argsStandardScheme extends StandardScheme<watchRepository_args> {
28660
28661 public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_args struct) throws org.apache.thrift.TException {
28662 org.apache.thrift.protocol.TField schemeField;
28663 iprot.readStructBegin();
28664 while (true)
28665 {
28666 schemeField = iprot.readFieldBegin();
28667 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
28668 break;
28669 }
28670 switch (schemeField.id) {
28671 case 1:
28672 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
28673 struct.projectName = iprot.readString();
28674 struct.setProjectNameIsSet(true);
28675 } else {
28676 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28677 }
28678 break;
28679 case 2:
28680 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
28681 struct.repositoryName = iprot.readString();
28682 struct.setRepositoryNameIsSet(true);
28683 } else {
28684 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28685 }
28686 break;
28687 case 3:
28688 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28689 struct.lastKnownRevision = new Revision();
28690 struct.lastKnownRevision.read(iprot);
28691 struct.setLastKnownRevisionIsSet(true);
28692 } else {
28693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28694 }
28695 break;
28696 case 4:
28697 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
28698 struct.pathPattern = iprot.readString();
28699 struct.setPathPatternIsSet(true);
28700 } else {
28701 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28702 }
28703 break;
28704 case 5:
28705 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
28706 struct.timeoutMillis = iprot.readI64();
28707 struct.setTimeoutMillisIsSet(true);
28708 } else {
28709 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28710 }
28711 break;
28712 default:
28713 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28714 }
28715 iprot.readFieldEnd();
28716 }
28717 iprot.readStructEnd();
28718
28719
28720 struct.validate();
28721 }
28722
28723 public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_args struct) throws org.apache.thrift.TException {
28724 struct.validate();
28725
28726 oprot.writeStructBegin(STRUCT_DESC);
28727 if (struct.projectName != null) {
28728 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
28729 oprot.writeString(struct.projectName);
28730 oprot.writeFieldEnd();
28731 }
28732 if (struct.repositoryName != null) {
28733 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
28734 oprot.writeString(struct.repositoryName);
28735 oprot.writeFieldEnd();
28736 }
28737 if (struct.lastKnownRevision != null) {
28738 oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC);
28739 struct.lastKnownRevision.write(oprot);
28740 oprot.writeFieldEnd();
28741 }
28742 if (struct.pathPattern != null) {
28743 oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC);
28744 oprot.writeString(struct.pathPattern);
28745 oprot.writeFieldEnd();
28746 }
28747 oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC);
28748 oprot.writeI64(struct.timeoutMillis);
28749 oprot.writeFieldEnd();
28750 oprot.writeFieldStop();
28751 oprot.writeStructEnd();
28752 }
28753
28754 }
28755
28756 private static class watchRepository_argsTupleSchemeFactory implements SchemeFactory {
28757 public watchRepository_argsTupleScheme getScheme() {
28758 return new watchRepository_argsTupleScheme();
28759 }
28760 }
28761
28762 private static class watchRepository_argsTupleScheme extends TupleScheme<watchRepository_args> {
28763
28764 @Override
28765 public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException {
28766 TTupleProtocol oprot = (TTupleProtocol) prot;
28767 BitSet optionals = new BitSet();
28768 if (struct.isSetProjectName()) {
28769 optionals.set(0);
28770 }
28771 if (struct.isSetRepositoryName()) {
28772 optionals.set(1);
28773 }
28774 if (struct.isSetLastKnownRevision()) {
28775 optionals.set(2);
28776 }
28777 if (struct.isSetPathPattern()) {
28778 optionals.set(3);
28779 }
28780 if (struct.isSetTimeoutMillis()) {
28781 optionals.set(4);
28782 }
28783 oprot.writeBitSet(optionals, 5);
28784 if (struct.isSetProjectName()) {
28785 oprot.writeString(struct.projectName);
28786 }
28787 if (struct.isSetRepositoryName()) {
28788 oprot.writeString(struct.repositoryName);
28789 }
28790 if (struct.isSetLastKnownRevision()) {
28791 struct.lastKnownRevision.write(oprot);
28792 }
28793 if (struct.isSetPathPattern()) {
28794 oprot.writeString(struct.pathPattern);
28795 }
28796 if (struct.isSetTimeoutMillis()) {
28797 oprot.writeI64(struct.timeoutMillis);
28798 }
28799 }
28800
28801 @Override
28802 public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException {
28803 TTupleProtocol iprot = (TTupleProtocol) prot;
28804 BitSet incoming = iprot.readBitSet(5);
28805 if (incoming.get(0)) {
28806 struct.projectName = iprot.readString();
28807 struct.setProjectNameIsSet(true);
28808 }
28809 if (incoming.get(1)) {
28810 struct.repositoryName = iprot.readString();
28811 struct.setRepositoryNameIsSet(true);
28812 }
28813 if (incoming.get(2)) {
28814 struct.lastKnownRevision = new Revision();
28815 struct.lastKnownRevision.read(iprot);
28816 struct.setLastKnownRevisionIsSet(true);
28817 }
28818 if (incoming.get(3)) {
28819 struct.pathPattern = iprot.readString();
28820 struct.setPathPatternIsSet(true);
28821 }
28822 if (incoming.get(4)) {
28823 struct.timeoutMillis = iprot.readI64();
28824 struct.setTimeoutMillisIsSet(true);
28825 }
28826 }
28827 }
28828
28829 }
28830
28831 public static class watchRepository_result implements org.apache.thrift.TBase<watchRepository_result, watchRepository_result._Fields>, java.io.Serializable, Cloneable, Comparable<watchRepository_result> {
28832 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_result");
28833
28834 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
28835 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28836
28837 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28838 static {
28839 schemes.put(StandardScheme.class, new watchRepository_resultStandardSchemeFactory());
28840 schemes.put(TupleScheme.class, new watchRepository_resultTupleSchemeFactory());
28841 }
28842
28843 public WatchRepositoryResult success;
28844 public CentralDogmaException e;
28845
28846
28847 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28848 SUCCESS((short)0, "success"),
28849 E((short)1, "e");
28850
28851 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28852
28853 static {
28854 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28855 byName.put(field.getFieldName(), field);
28856 }
28857 }
28858
28859
28860
28861
28862 public static _Fields findByThriftId(int fieldId) {
28863 switch(fieldId) {
28864 case 0:
28865 return SUCCESS;
28866 case 1:
28867 return E;
28868 default:
28869 return null;
28870 }
28871 }
28872
28873
28874
28875
28876
28877 public static _Fields findByThriftIdOrThrow(int fieldId) {
28878 _Fields fields = findByThriftId(fieldId);
28879 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28880 return fields;
28881 }
28882
28883
28884
28885
28886 public static _Fields findByName(String name) {
28887 return byName.get(name);
28888 }
28889
28890 private final short _thriftId;
28891 private final String _fieldName;
28892
28893 _Fields(short thriftId, String fieldName) {
28894 _thriftId = thriftId;
28895 _fieldName = fieldName;
28896 }
28897
28898 public short getThriftFieldId() {
28899 return _thriftId;
28900 }
28901
28902 public String getFieldName() {
28903 return _fieldName;
28904 }
28905 }
28906
28907
28908 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28909 static {
28910 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28911 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
28912 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WatchRepositoryResult.class)));
28913 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
28914 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28915 metaDataMap = Collections.unmodifiableMap(tmpMap);
28916 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchRepository_result.class, metaDataMap);
28917 }
28918
28919 public watchRepository_result() {
28920 }
28921
28922 public watchRepository_result(
28923 WatchRepositoryResult success,
28924 CentralDogmaException e)
28925 {
28926 this();
28927 this.success = success;
28928 this.e = e;
28929 }
28930
28931
28932
28933
28934 public watchRepository_result(watchRepository_result other) {
28935 if (other.isSetSuccess()) {
28936 this.success = new WatchRepositoryResult(other.success);
28937 }
28938 if (other.isSetE()) {
28939 this.e = new CentralDogmaException(other.e);
28940 }
28941 }
28942
28943 public watchRepository_result deepCopy() {
28944 return new watchRepository_result(this);
28945 }
28946
28947 @Override
28948 public void clear() {
28949 this.success = null;
28950 this.e = null;
28951 }
28952
28953 public WatchRepositoryResult getSuccess() {
28954 return this.success;
28955 }
28956
28957 public watchRepository_result setSuccess(WatchRepositoryResult success) {
28958 this.success = success;
28959 return this;
28960 }
28961
28962 public void unsetSuccess() {
28963 this.success = null;
28964 }
28965
28966
28967 public boolean isSetSuccess() {
28968 return this.success != null;
28969 }
28970
28971 public void setSuccessIsSet(boolean value) {
28972 if (!value) {
28973 this.success = null;
28974 }
28975 }
28976
28977 public CentralDogmaException getE() {
28978 return this.e;
28979 }
28980
28981 public watchRepository_result setE(CentralDogmaException e) {
28982 this.e = e;
28983 return this;
28984 }
28985
28986 public void unsetE() {
28987 this.e = null;
28988 }
28989
28990
28991 public boolean isSetE() {
28992 return this.e != null;
28993 }
28994
28995 public void setEIsSet(boolean value) {
28996 if (!value) {
28997 this.e = null;
28998 }
28999 }
29000
29001 public void setFieldValue(_Fields field, Object value) {
29002 switch (field) {
29003 case SUCCESS:
29004 if (value == null) {
29005 unsetSuccess();
29006 } else {
29007 setSuccess((WatchRepositoryResult)value);
29008 }
29009 break;
29010
29011 case E:
29012 if (value == null) {
29013 unsetE();
29014 } else {
29015 setE((CentralDogmaException)value);
29016 }
29017 break;
29018
29019 }
29020 }
29021
29022 public Object getFieldValue(_Fields field) {
29023 switch (field) {
29024 case SUCCESS:
29025 return getSuccess();
29026
29027 case E:
29028 return getE();
29029
29030 }
29031 throw new IllegalStateException();
29032 }
29033
29034
29035 public boolean isSet(_Fields field) {
29036 if (field == null) {
29037 throw new IllegalArgumentException();
29038 }
29039
29040 switch (field) {
29041 case SUCCESS:
29042 return isSetSuccess();
29043 case E:
29044 return isSetE();
29045 }
29046 throw new IllegalStateException();
29047 }
29048
29049 @Override
29050 public boolean equals(Object that) {
29051 if (that == null)
29052 return false;
29053 if (that instanceof watchRepository_result)
29054 return this.equals((watchRepository_result)that);
29055 return false;
29056 }
29057
29058 public boolean equals(watchRepository_result that) {
29059 if (that == null)
29060 return false;
29061
29062 boolean this_present_success = true && this.isSetSuccess();
29063 boolean that_present_success = true && that.isSetSuccess();
29064 if (this_present_success || that_present_success) {
29065 if (!(this_present_success && that_present_success))
29066 return false;
29067 if (!this.success.equals(that.success))
29068 return false;
29069 }
29070
29071 boolean this_present_e = true && this.isSetE();
29072 boolean that_present_e = true && that.isSetE();
29073 if (this_present_e || that_present_e) {
29074 if (!(this_present_e && that_present_e))
29075 return false;
29076 if (!this.e.equals(that.e))
29077 return false;
29078 }
29079
29080 return true;
29081 }
29082
29083 @Override
29084 public int hashCode() {
29085 List<Object> list = new ArrayList<Object>();
29086
29087 boolean present_success = true && (isSetSuccess());
29088 list.add(present_success);
29089 if (present_success)
29090 list.add(success);
29091
29092 boolean present_e = true && (isSetE());
29093 list.add(present_e);
29094 if (present_e)
29095 list.add(e);
29096
29097 return list.hashCode();
29098 }
29099
29100 @Override
29101 public int compareTo(watchRepository_result other) {
29102 if (!getClass().equals(other.getClass())) {
29103 return getClass().getName().compareTo(other.getClass().getName());
29104 }
29105
29106 int lastComparison = 0;
29107
29108 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
29109 if (lastComparison != 0) {
29110 return lastComparison;
29111 }
29112 if (isSetSuccess()) {
29113 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
29114 if (lastComparison != 0) {
29115 return lastComparison;
29116 }
29117 }
29118 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
29119 if (lastComparison != 0) {
29120 return lastComparison;
29121 }
29122 if (isSetE()) {
29123 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
29124 if (lastComparison != 0) {
29125 return lastComparison;
29126 }
29127 }
29128 return 0;
29129 }
29130
29131 public _Fields fieldForId(int fieldId) {
29132 return _Fields.findByThriftId(fieldId);
29133 }
29134
29135 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29136 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29137 }
29138
29139 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29140 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29141 }
29142
29143 @Override
29144 public String toString() {
29145 StringBuilder sb = new StringBuilder("watchRepository_result(");
29146 boolean first = true;
29147
29148 sb.append("success:");
29149 if (this.success == null) {
29150 sb.append("null");
29151 } else {
29152 sb.append(this.success);
29153 }
29154 first = false;
29155 if (!first) sb.append(", ");
29156 sb.append("e:");
29157 if (this.e == null) {
29158 sb.append("null");
29159 } else {
29160 sb.append(this.e);
29161 }
29162 first = false;
29163 sb.append(")");
29164 return sb.toString();
29165 }
29166
29167 public void validate() throws org.apache.thrift.TException {
29168
29169
29170 if (success != null) {
29171 success.validate();
29172 }
29173 }
29174
29175 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29176 try {
29177 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29178 } catch (org.apache.thrift.TException te) {
29179 throw new java.io.IOException(te);
29180 }
29181 }
29182
29183 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29184 try {
29185 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29186 } catch (org.apache.thrift.TException te) {
29187 throw new java.io.IOException(te);
29188 }
29189 }
29190
29191 private static class watchRepository_resultStandardSchemeFactory implements SchemeFactory {
29192 public watchRepository_resultStandardScheme getScheme() {
29193 return new watchRepository_resultStandardScheme();
29194 }
29195 }
29196
29197 private static class watchRepository_resultStandardScheme extends StandardScheme<watchRepository_result> {
29198
29199 public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_result struct) throws org.apache.thrift.TException {
29200 org.apache.thrift.protocol.TField schemeField;
29201 iprot.readStructBegin();
29202 while (true)
29203 {
29204 schemeField = iprot.readFieldBegin();
29205 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29206 break;
29207 }
29208 switch (schemeField.id) {
29209 case 0:
29210 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29211 struct.success = new WatchRepositoryResult();
29212 struct.success.read(iprot);
29213 struct.setSuccessIsSet(true);
29214 } else {
29215 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29216 }
29217 break;
29218 case 1:
29219 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29220 struct.e = new CentralDogmaException();
29221 struct.e.read(iprot);
29222 struct.setEIsSet(true);
29223 } else {
29224 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29225 }
29226 break;
29227 default:
29228 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29229 }
29230 iprot.readFieldEnd();
29231 }
29232 iprot.readStructEnd();
29233
29234
29235 struct.validate();
29236 }
29237
29238 public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_result struct) throws org.apache.thrift.TException {
29239 struct.validate();
29240
29241 oprot.writeStructBegin(STRUCT_DESC);
29242 if (struct.success != null) {
29243 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29244 struct.success.write(oprot);
29245 oprot.writeFieldEnd();
29246 }
29247 if (struct.e != null) {
29248 oprot.writeFieldBegin(E_FIELD_DESC);
29249 struct.e.write(oprot);
29250 oprot.writeFieldEnd();
29251 }
29252 oprot.writeFieldStop();
29253 oprot.writeStructEnd();
29254 }
29255
29256 }
29257
29258 private static class watchRepository_resultTupleSchemeFactory implements SchemeFactory {
29259 public watchRepository_resultTupleScheme getScheme() {
29260 return new watchRepository_resultTupleScheme();
29261 }
29262 }
29263
29264 private static class watchRepository_resultTupleScheme extends TupleScheme<watchRepository_result> {
29265
29266 @Override
29267 public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException {
29268 TTupleProtocol oprot = (TTupleProtocol) prot;
29269 BitSet optionals = new BitSet();
29270 if (struct.isSetSuccess()) {
29271 optionals.set(0);
29272 }
29273 if (struct.isSetE()) {
29274 optionals.set(1);
29275 }
29276 oprot.writeBitSet(optionals, 2);
29277 if (struct.isSetSuccess()) {
29278 struct.success.write(oprot);
29279 }
29280 if (struct.isSetE()) {
29281 struct.e.write(oprot);
29282 }
29283 }
29284
29285 @Override
29286 public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException {
29287 TTupleProtocol iprot = (TTupleProtocol) prot;
29288 BitSet incoming = iprot.readBitSet(2);
29289 if (incoming.get(0)) {
29290 struct.success = new WatchRepositoryResult();
29291 struct.success.read(iprot);
29292 struct.setSuccessIsSet(true);
29293 }
29294 if (incoming.get(1)) {
29295 struct.e = new CentralDogmaException();
29296 struct.e.read(iprot);
29297 struct.setEIsSet(true);
29298 }
29299 }
29300 }
29301
29302 }
29303
29304 public static class watchFile_args implements org.apache.thrift.TBase<watchFile_args, watchFile_args._Fields>, java.io.Serializable, Cloneable, Comparable<watchFile_args> {
29305 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_args");
29306
29307 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
29308 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
29309 private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
29310 private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4);
29311 private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5);
29312
29313 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29314 static {
29315 schemes.put(StandardScheme.class, new watchFile_argsStandardSchemeFactory());
29316 schemes.put(TupleScheme.class, new watchFile_argsTupleSchemeFactory());
29317 }
29318
29319 public String projectName;
29320 public String repositoryName;
29321 public Revision lastKnownRevision;
29322 public Query query;
29323 public long timeoutMillis;
29324
29325
29326 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29327 PROJECT_NAME((short)1, "projectName"),
29328 REPOSITORY_NAME((short)2, "repositoryName"),
29329 LAST_KNOWN_REVISION((short)3, "lastKnownRevision"),
29330 QUERY((short)4, "query"),
29331 TIMEOUT_MILLIS((short)5, "timeoutMillis");
29332
29333 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29334
29335 static {
29336 for (_Fields field : EnumSet.allOf(_Fields.class)) {
29337 byName.put(field.getFieldName(), field);
29338 }
29339 }
29340
29341
29342
29343
29344 public static _Fields findByThriftId(int fieldId) {
29345 switch(fieldId) {
29346 case 1:
29347 return PROJECT_NAME;
29348 case 2:
29349 return REPOSITORY_NAME;
29350 case 3:
29351 return LAST_KNOWN_REVISION;
29352 case 4:
29353 return QUERY;
29354 case 5:
29355 return TIMEOUT_MILLIS;
29356 default:
29357 return null;
29358 }
29359 }
29360
29361
29362
29363
29364
29365 public static _Fields findByThriftIdOrThrow(int fieldId) {
29366 _Fields fields = findByThriftId(fieldId);
29367 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29368 return fields;
29369 }
29370
29371
29372
29373
29374 public static _Fields findByName(String name) {
29375 return byName.get(name);
29376 }
29377
29378 private final short _thriftId;
29379 private final String _fieldName;
29380
29381 _Fields(short thriftId, String fieldName) {
29382 _thriftId = thriftId;
29383 _fieldName = fieldName;
29384 }
29385
29386 public short getThriftFieldId() {
29387 return _thriftId;
29388 }
29389
29390 public String getFieldName() {
29391 return _fieldName;
29392 }
29393 }
29394
29395
29396 private static final int __TIMEOUTMILLIS_ISSET_ID = 0;
29397 private byte __isset_bitfield = 0;
29398 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29399 static {
29400 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29401 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
29402 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29403 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
29404 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29405 tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT,
29406 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
29407 tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT,
29408 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class)));
29409 tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT,
29410 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29411 metaDataMap = Collections.unmodifiableMap(tmpMap);
29412 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchFile_args.class, metaDataMap);
29413 }
29414
29415 public watchFile_args() {
29416 }
29417
29418 public watchFile_args(
29419 String projectName,
29420 String repositoryName,
29421 Revision lastKnownRevision,
29422 Query query,
29423 long timeoutMillis)
29424 {
29425 this();
29426 this.projectName = projectName;
29427 this.repositoryName = repositoryName;
29428 this.lastKnownRevision = lastKnownRevision;
29429 this.query = query;
29430 this.timeoutMillis = timeoutMillis;
29431 setTimeoutMillisIsSet(true);
29432 }
29433
29434
29435
29436
29437 public watchFile_args(watchFile_args other) {
29438 __isset_bitfield = other.__isset_bitfield;
29439 if (other.isSetProjectName()) {
29440 this.projectName = other.projectName;
29441 }
29442 if (other.isSetRepositoryName()) {
29443 this.repositoryName = other.repositoryName;
29444 }
29445 if (other.isSetLastKnownRevision()) {
29446 this.lastKnownRevision = new Revision(other.lastKnownRevision);
29447 }
29448 if (other.isSetQuery()) {
29449 this.query = new Query(other.query);
29450 }
29451 this.timeoutMillis = other.timeoutMillis;
29452 }
29453
29454 public watchFile_args deepCopy() {
29455 return new watchFile_args(this);
29456 }
29457
29458 @Override
29459 public void clear() {
29460 this.projectName = null;
29461 this.repositoryName = null;
29462 this.lastKnownRevision = null;
29463 this.query = null;
29464 setTimeoutMillisIsSet(false);
29465 this.timeoutMillis = 0;
29466 }
29467
29468 public String getProjectName() {
29469 return this.projectName;
29470 }
29471
29472 public watchFile_args setProjectName(String projectName) {
29473 this.projectName = projectName;
29474 return this;
29475 }
29476
29477 public void unsetProjectName() {
29478 this.projectName = null;
29479 }
29480
29481
29482 public boolean isSetProjectName() {
29483 return this.projectName != null;
29484 }
29485
29486 public void setProjectNameIsSet(boolean value) {
29487 if (!value) {
29488 this.projectName = null;
29489 }
29490 }
29491
29492 public String getRepositoryName() {
29493 return this.repositoryName;
29494 }
29495
29496 public watchFile_args setRepositoryName(String repositoryName) {
29497 this.repositoryName = repositoryName;
29498 return this;
29499 }
29500
29501 public void unsetRepositoryName() {
29502 this.repositoryName = null;
29503 }
29504
29505
29506 public boolean isSetRepositoryName() {
29507 return this.repositoryName != null;
29508 }
29509
29510 public void setRepositoryNameIsSet(boolean value) {
29511 if (!value) {
29512 this.repositoryName = null;
29513 }
29514 }
29515
29516 public Revision getLastKnownRevision() {
29517 return this.lastKnownRevision;
29518 }
29519
29520 public watchFile_args setLastKnownRevision(Revision lastKnownRevision) {
29521 this.lastKnownRevision = lastKnownRevision;
29522 return this;
29523 }
29524
29525 public void unsetLastKnownRevision() {
29526 this.lastKnownRevision = null;
29527 }
29528
29529
29530 public boolean isSetLastKnownRevision() {
29531 return this.lastKnownRevision != null;
29532 }
29533
29534 public void setLastKnownRevisionIsSet(boolean value) {
29535 if (!value) {
29536 this.lastKnownRevision = null;
29537 }
29538 }
29539
29540 public Query getQuery() {
29541 return this.query;
29542 }
29543
29544 public watchFile_args setQuery(Query query) {
29545 this.query = query;
29546 return this;
29547 }
29548
29549 public void unsetQuery() {
29550 this.query = null;
29551 }
29552
29553
29554 public boolean isSetQuery() {
29555 return this.query != null;
29556 }
29557
29558 public void setQueryIsSet(boolean value) {
29559 if (!value) {
29560 this.query = null;
29561 }
29562 }
29563
29564 public long getTimeoutMillis() {
29565 return this.timeoutMillis;
29566 }
29567
29568 public watchFile_args setTimeoutMillis(long timeoutMillis) {
29569 this.timeoutMillis = timeoutMillis;
29570 setTimeoutMillisIsSet(true);
29571 return this;
29572 }
29573
29574 public void unsetTimeoutMillis() {
29575 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
29576 }
29577
29578
29579 public boolean isSetTimeoutMillis() {
29580 return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID);
29581 }
29582
29583 public void setTimeoutMillisIsSet(boolean value) {
29584 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value);
29585 }
29586
29587 public void setFieldValue(_Fields field, Object value) {
29588 switch (field) {
29589 case PROJECT_NAME:
29590 if (value == null) {
29591 unsetProjectName();
29592 } else {
29593 setProjectName((String)value);
29594 }
29595 break;
29596
29597 case REPOSITORY_NAME:
29598 if (value == null) {
29599 unsetRepositoryName();
29600 } else {
29601 setRepositoryName((String)value);
29602 }
29603 break;
29604
29605 case LAST_KNOWN_REVISION:
29606 if (value == null) {
29607 unsetLastKnownRevision();
29608 } else {
29609 setLastKnownRevision((Revision)value);
29610 }
29611 break;
29612
29613 case QUERY:
29614 if (value == null) {
29615 unsetQuery();
29616 } else {
29617 setQuery((Query)value);
29618 }
29619 break;
29620
29621 case TIMEOUT_MILLIS:
29622 if (value == null) {
29623 unsetTimeoutMillis();
29624 } else {
29625 setTimeoutMillis((Long)value);
29626 }
29627 break;
29628
29629 }
29630 }
29631
29632 public Object getFieldValue(_Fields field) {
29633 switch (field) {
29634 case PROJECT_NAME:
29635 return getProjectName();
29636
29637 case REPOSITORY_NAME:
29638 return getRepositoryName();
29639
29640 case LAST_KNOWN_REVISION:
29641 return getLastKnownRevision();
29642
29643 case QUERY:
29644 return getQuery();
29645
29646 case TIMEOUT_MILLIS:
29647 return getTimeoutMillis();
29648
29649 }
29650 throw new IllegalStateException();
29651 }
29652
29653
29654 public boolean isSet(_Fields field) {
29655 if (field == null) {
29656 throw new IllegalArgumentException();
29657 }
29658
29659 switch (field) {
29660 case PROJECT_NAME:
29661 return isSetProjectName();
29662 case REPOSITORY_NAME:
29663 return isSetRepositoryName();
29664 case LAST_KNOWN_REVISION:
29665 return isSetLastKnownRevision();
29666 case QUERY:
29667 return isSetQuery();
29668 case TIMEOUT_MILLIS:
29669 return isSetTimeoutMillis();
29670 }
29671 throw new IllegalStateException();
29672 }
29673
29674 @Override
29675 public boolean equals(Object that) {
29676 if (that == null)
29677 return false;
29678 if (that instanceof watchFile_args)
29679 return this.equals((watchFile_args)that);
29680 return false;
29681 }
29682
29683 public boolean equals(watchFile_args that) {
29684 if (that == null)
29685 return false;
29686
29687 boolean this_present_projectName = true && this.isSetProjectName();
29688 boolean that_present_projectName = true && that.isSetProjectName();
29689 if (this_present_projectName || that_present_projectName) {
29690 if (!(this_present_projectName && that_present_projectName))
29691 return false;
29692 if (!this.projectName.equals(that.projectName))
29693 return false;
29694 }
29695
29696 boolean this_present_repositoryName = true && this.isSetRepositoryName();
29697 boolean that_present_repositoryName = true && that.isSetRepositoryName();
29698 if (this_present_repositoryName || that_present_repositoryName) {
29699 if (!(this_present_repositoryName && that_present_repositoryName))
29700 return false;
29701 if (!this.repositoryName.equals(that.repositoryName))
29702 return false;
29703 }
29704
29705 boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision();
29706 boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision();
29707 if (this_present_lastKnownRevision || that_present_lastKnownRevision) {
29708 if (!(this_present_lastKnownRevision && that_present_lastKnownRevision))
29709 return false;
29710 if (!this.lastKnownRevision.equals(that.lastKnownRevision))
29711 return false;
29712 }
29713
29714 boolean this_present_query = true && this.isSetQuery();
29715 boolean that_present_query = true && that.isSetQuery();
29716 if (this_present_query || that_present_query) {
29717 if (!(this_present_query && that_present_query))
29718 return false;
29719 if (!this.query.equals(that.query))
29720 return false;
29721 }
29722
29723 boolean this_present_timeoutMillis = true;
29724 boolean that_present_timeoutMillis = true;
29725 if (this_present_timeoutMillis || that_present_timeoutMillis) {
29726 if (!(this_present_timeoutMillis && that_present_timeoutMillis))
29727 return false;
29728 if (this.timeoutMillis != that.timeoutMillis)
29729 return false;
29730 }
29731
29732 return true;
29733 }
29734
29735 @Override
29736 public int hashCode() {
29737 List<Object> list = new ArrayList<Object>();
29738
29739 boolean present_projectName = true && (isSetProjectName());
29740 list.add(present_projectName);
29741 if (present_projectName)
29742 list.add(projectName);
29743
29744 boolean present_repositoryName = true && (isSetRepositoryName());
29745 list.add(present_repositoryName);
29746 if (present_repositoryName)
29747 list.add(repositoryName);
29748
29749 boolean present_lastKnownRevision = true && (isSetLastKnownRevision());
29750 list.add(present_lastKnownRevision);
29751 if (present_lastKnownRevision)
29752 list.add(lastKnownRevision);
29753
29754 boolean present_query = true && (isSetQuery());
29755 list.add(present_query);
29756 if (present_query)
29757 list.add(query);
29758
29759 boolean present_timeoutMillis = true;
29760 list.add(present_timeoutMillis);
29761 if (present_timeoutMillis)
29762 list.add(timeoutMillis);
29763
29764 return list.hashCode();
29765 }
29766
29767 @Override
29768 public int compareTo(watchFile_args other) {
29769 if (!getClass().equals(other.getClass())) {
29770 return getClass().getName().compareTo(other.getClass().getName());
29771 }
29772
29773 int lastComparison = 0;
29774
29775 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
29776 if (lastComparison != 0) {
29777 return lastComparison;
29778 }
29779 if (isSetProjectName()) {
29780 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
29781 if (lastComparison != 0) {
29782 return lastComparison;
29783 }
29784 }
29785 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
29786 if (lastComparison != 0) {
29787 return lastComparison;
29788 }
29789 if (isSetRepositoryName()) {
29790 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
29791 if (lastComparison != 0) {
29792 return lastComparison;
29793 }
29794 }
29795 lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision());
29796 if (lastComparison != 0) {
29797 return lastComparison;
29798 }
29799 if (isSetLastKnownRevision()) {
29800 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision);
29801 if (lastComparison != 0) {
29802 return lastComparison;
29803 }
29804 }
29805 lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery());
29806 if (lastComparison != 0) {
29807 return lastComparison;
29808 }
29809 if (isSetQuery()) {
29810 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query);
29811 if (lastComparison != 0) {
29812 return lastComparison;
29813 }
29814 }
29815 lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis());
29816 if (lastComparison != 0) {
29817 return lastComparison;
29818 }
29819 if (isSetTimeoutMillis()) {
29820 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis);
29821 if (lastComparison != 0) {
29822 return lastComparison;
29823 }
29824 }
29825 return 0;
29826 }
29827
29828 public _Fields fieldForId(int fieldId) {
29829 return _Fields.findByThriftId(fieldId);
29830 }
29831
29832 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29833 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29834 }
29835
29836 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29837 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29838 }
29839
29840 @Override
29841 public String toString() {
29842 StringBuilder sb = new StringBuilder("watchFile_args(");
29843 boolean first = true;
29844
29845 sb.append("projectName:");
29846 if (this.projectName == null) {
29847 sb.append("null");
29848 } else {
29849 sb.append(this.projectName);
29850 }
29851 first = false;
29852 if (!first) sb.append(", ");
29853 sb.append("repositoryName:");
29854 if (this.repositoryName == null) {
29855 sb.append("null");
29856 } else {
29857 sb.append(this.repositoryName);
29858 }
29859 first = false;
29860 if (!first) sb.append(", ");
29861 sb.append("lastKnownRevision:");
29862 if (this.lastKnownRevision == null) {
29863 sb.append("null");
29864 } else {
29865 sb.append(this.lastKnownRevision);
29866 }
29867 first = false;
29868 if (!first) sb.append(", ");
29869 sb.append("query:");
29870 if (this.query == null) {
29871 sb.append("null");
29872 } else {
29873 sb.append(this.query);
29874 }
29875 first = false;
29876 if (!first) sb.append(", ");
29877 sb.append("timeoutMillis:");
29878 sb.append(this.timeoutMillis);
29879 first = false;
29880 sb.append(")");
29881 return sb.toString();
29882 }
29883
29884 public void validate() throws org.apache.thrift.TException {
29885
29886
29887 if (lastKnownRevision != null) {
29888 lastKnownRevision.validate();
29889 }
29890 if (query != null) {
29891 query.validate();
29892 }
29893 }
29894
29895 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29896 try {
29897 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29898 } catch (org.apache.thrift.TException te) {
29899 throw new java.io.IOException(te);
29900 }
29901 }
29902
29903 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29904 try {
29905
29906 __isset_bitfield = 0;
29907 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29908 } catch (org.apache.thrift.TException te) {
29909 throw new java.io.IOException(te);
29910 }
29911 }
29912
29913 private static class watchFile_argsStandardSchemeFactory implements SchemeFactory {
29914 public watchFile_argsStandardScheme getScheme() {
29915 return new watchFile_argsStandardScheme();
29916 }
29917 }
29918
29919 private static class watchFile_argsStandardScheme extends StandardScheme<watchFile_args> {
29920
29921 public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_args struct) throws org.apache.thrift.TException {
29922 org.apache.thrift.protocol.TField schemeField;
29923 iprot.readStructBegin();
29924 while (true)
29925 {
29926 schemeField = iprot.readFieldBegin();
29927 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29928 break;
29929 }
29930 switch (schemeField.id) {
29931 case 1:
29932 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29933 struct.projectName = iprot.readString();
29934 struct.setProjectNameIsSet(true);
29935 } else {
29936 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29937 }
29938 break;
29939 case 2:
29940 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29941 struct.repositoryName = iprot.readString();
29942 struct.setRepositoryNameIsSet(true);
29943 } else {
29944 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29945 }
29946 break;
29947 case 3:
29948 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29949 struct.lastKnownRevision = new Revision();
29950 struct.lastKnownRevision.read(iprot);
29951 struct.setLastKnownRevisionIsSet(true);
29952 } else {
29953 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29954 }
29955 break;
29956 case 4:
29957 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29958 struct.query = new Query();
29959 struct.query.read(iprot);
29960 struct.setQueryIsSet(true);
29961 } else {
29962 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29963 }
29964 break;
29965 case 5:
29966 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
29967 struct.timeoutMillis = iprot.readI64();
29968 struct.setTimeoutMillisIsSet(true);
29969 } else {
29970 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29971 }
29972 break;
29973 default:
29974 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29975 }
29976 iprot.readFieldEnd();
29977 }
29978 iprot.readStructEnd();
29979
29980
29981 struct.validate();
29982 }
29983
29984 public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_args struct) throws org.apache.thrift.TException {
29985 struct.validate();
29986
29987 oprot.writeStructBegin(STRUCT_DESC);
29988 if (struct.projectName != null) {
29989 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
29990 oprot.writeString(struct.projectName);
29991 oprot.writeFieldEnd();
29992 }
29993 if (struct.repositoryName != null) {
29994 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
29995 oprot.writeString(struct.repositoryName);
29996 oprot.writeFieldEnd();
29997 }
29998 if (struct.lastKnownRevision != null) {
29999 oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC);
30000 struct.lastKnownRevision.write(oprot);
30001 oprot.writeFieldEnd();
30002 }
30003 if (struct.query != null) {
30004 oprot.writeFieldBegin(QUERY_FIELD_DESC);
30005 struct.query.write(oprot);
30006 oprot.writeFieldEnd();
30007 }
30008 oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC);
30009 oprot.writeI64(struct.timeoutMillis);
30010 oprot.writeFieldEnd();
30011 oprot.writeFieldStop();
30012 oprot.writeStructEnd();
30013 }
30014
30015 }
30016
30017 private static class watchFile_argsTupleSchemeFactory implements SchemeFactory {
30018 public watchFile_argsTupleScheme getScheme() {
30019 return new watchFile_argsTupleScheme();
30020 }
30021 }
30022
30023 private static class watchFile_argsTupleScheme extends TupleScheme<watchFile_args> {
30024
30025 @Override
30026 public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException {
30027 TTupleProtocol oprot = (TTupleProtocol) prot;
30028 BitSet optionals = new BitSet();
30029 if (struct.isSetProjectName()) {
30030 optionals.set(0);
30031 }
30032 if (struct.isSetRepositoryName()) {
30033 optionals.set(1);
30034 }
30035 if (struct.isSetLastKnownRevision()) {
30036 optionals.set(2);
30037 }
30038 if (struct.isSetQuery()) {
30039 optionals.set(3);
30040 }
30041 if (struct.isSetTimeoutMillis()) {
30042 optionals.set(4);
30043 }
30044 oprot.writeBitSet(optionals, 5);
30045 if (struct.isSetProjectName()) {
30046 oprot.writeString(struct.projectName);
30047 }
30048 if (struct.isSetRepositoryName()) {
30049 oprot.writeString(struct.repositoryName);
30050 }
30051 if (struct.isSetLastKnownRevision()) {
30052 struct.lastKnownRevision.write(oprot);
30053 }
30054 if (struct.isSetQuery()) {
30055 struct.query.write(oprot);
30056 }
30057 if (struct.isSetTimeoutMillis()) {
30058 oprot.writeI64(struct.timeoutMillis);
30059 }
30060 }
30061
30062 @Override
30063 public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException {
30064 TTupleProtocol iprot = (TTupleProtocol) prot;
30065 BitSet incoming = iprot.readBitSet(5);
30066 if (incoming.get(0)) {
30067 struct.projectName = iprot.readString();
30068 struct.setProjectNameIsSet(true);
30069 }
30070 if (incoming.get(1)) {
30071 struct.repositoryName = iprot.readString();
30072 struct.setRepositoryNameIsSet(true);
30073 }
30074 if (incoming.get(2)) {
30075 struct.lastKnownRevision = new Revision();
30076 struct.lastKnownRevision.read(iprot);
30077 struct.setLastKnownRevisionIsSet(true);
30078 }
30079 if (incoming.get(3)) {
30080 struct.query = new Query();
30081 struct.query.read(iprot);
30082 struct.setQueryIsSet(true);
30083 }
30084 if (incoming.get(4)) {
30085 struct.timeoutMillis = iprot.readI64();
30086 struct.setTimeoutMillisIsSet(true);
30087 }
30088 }
30089 }
30090
30091 }
30092
30093 public static class watchFile_result implements org.apache.thrift.TBase<watchFile_result, watchFile_result._Fields>, java.io.Serializable, Cloneable, Comparable<watchFile_result> {
30094 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_result");
30095
30096 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
30097 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30098
30099 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30100 static {
30101 schemes.put(StandardScheme.class, new watchFile_resultStandardSchemeFactory());
30102 schemes.put(TupleScheme.class, new watchFile_resultTupleSchemeFactory());
30103 }
30104
30105 public WatchFileResult success;
30106 public CentralDogmaException e;
30107
30108
30109 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30110 SUCCESS((short)0, "success"),
30111 E((short)1, "e");
30112
30113 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30114
30115 static {
30116 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30117 byName.put(field.getFieldName(), field);
30118 }
30119 }
30120
30121
30122
30123
30124 public static _Fields findByThriftId(int fieldId) {
30125 switch(fieldId) {
30126 case 0:
30127 return SUCCESS;
30128 case 1:
30129 return E;
30130 default:
30131 return null;
30132 }
30133 }
30134
30135
30136
30137
30138
30139 public static _Fields findByThriftIdOrThrow(int fieldId) {
30140 _Fields fields = findByThriftId(fieldId);
30141 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30142 return fields;
30143 }
30144
30145
30146
30147
30148 public static _Fields findByName(String name) {
30149 return byName.get(name);
30150 }
30151
30152 private final short _thriftId;
30153 private final String _fieldName;
30154
30155 _Fields(short thriftId, String fieldName) {
30156 _thriftId = thriftId;
30157 _fieldName = fieldName;
30158 }
30159
30160 public short getThriftFieldId() {
30161 return _thriftId;
30162 }
30163
30164 public String getFieldName() {
30165 return _fieldName;
30166 }
30167 }
30168
30169
30170 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30171 static {
30172 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30173 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
30174 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WatchFileResult.class)));
30175 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
30176 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30177 metaDataMap = Collections.unmodifiableMap(tmpMap);
30178 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchFile_result.class, metaDataMap);
30179 }
30180
30181 public watchFile_result() {
30182 }
30183
30184 public watchFile_result(
30185 WatchFileResult success,
30186 CentralDogmaException e)
30187 {
30188 this();
30189 this.success = success;
30190 this.e = e;
30191 }
30192
30193
30194
30195
30196 public watchFile_result(watchFile_result other) {
30197 if (other.isSetSuccess()) {
30198 this.success = new WatchFileResult(other.success);
30199 }
30200 if (other.isSetE()) {
30201 this.e = new CentralDogmaException(other.e);
30202 }
30203 }
30204
30205 public watchFile_result deepCopy() {
30206 return new watchFile_result(this);
30207 }
30208
30209 @Override
30210 public void clear() {
30211 this.success = null;
30212 this.e = null;
30213 }
30214
30215 public WatchFileResult getSuccess() {
30216 return this.success;
30217 }
30218
30219 public watchFile_result setSuccess(WatchFileResult success) {
30220 this.success = success;
30221 return this;
30222 }
30223
30224 public void unsetSuccess() {
30225 this.success = null;
30226 }
30227
30228
30229 public boolean isSetSuccess() {
30230 return this.success != null;
30231 }
30232
30233 public void setSuccessIsSet(boolean value) {
30234 if (!value) {
30235 this.success = null;
30236 }
30237 }
30238
30239 public CentralDogmaException getE() {
30240 return this.e;
30241 }
30242
30243 public watchFile_result setE(CentralDogmaException e) {
30244 this.e = e;
30245 return this;
30246 }
30247
30248 public void unsetE() {
30249 this.e = null;
30250 }
30251
30252
30253 public boolean isSetE() {
30254 return this.e != null;
30255 }
30256
30257 public void setEIsSet(boolean value) {
30258 if (!value) {
30259 this.e = null;
30260 }
30261 }
30262
30263 public void setFieldValue(_Fields field, Object value) {
30264 switch (field) {
30265 case SUCCESS:
30266 if (value == null) {
30267 unsetSuccess();
30268 } else {
30269 setSuccess((WatchFileResult)value);
30270 }
30271 break;
30272
30273 case E:
30274 if (value == null) {
30275 unsetE();
30276 } else {
30277 setE((CentralDogmaException)value);
30278 }
30279 break;
30280
30281 }
30282 }
30283
30284 public Object getFieldValue(_Fields field) {
30285 switch (field) {
30286 case SUCCESS:
30287 return getSuccess();
30288
30289 case E:
30290 return getE();
30291
30292 }
30293 throw new IllegalStateException();
30294 }
30295
30296
30297 public boolean isSet(_Fields field) {
30298 if (field == null) {
30299 throw new IllegalArgumentException();
30300 }
30301
30302 switch (field) {
30303 case SUCCESS:
30304 return isSetSuccess();
30305 case E:
30306 return isSetE();
30307 }
30308 throw new IllegalStateException();
30309 }
30310
30311 @Override
30312 public boolean equals(Object that) {
30313 if (that == null)
30314 return false;
30315 if (that instanceof watchFile_result)
30316 return this.equals((watchFile_result)that);
30317 return false;
30318 }
30319
30320 public boolean equals(watchFile_result that) {
30321 if (that == null)
30322 return false;
30323
30324 boolean this_present_success = true && this.isSetSuccess();
30325 boolean that_present_success = true && that.isSetSuccess();
30326 if (this_present_success || that_present_success) {
30327 if (!(this_present_success && that_present_success))
30328 return false;
30329 if (!this.success.equals(that.success))
30330 return false;
30331 }
30332
30333 boolean this_present_e = true && this.isSetE();
30334 boolean that_present_e = true && that.isSetE();
30335 if (this_present_e || that_present_e) {
30336 if (!(this_present_e && that_present_e))
30337 return false;
30338 if (!this.e.equals(that.e))
30339 return false;
30340 }
30341
30342 return true;
30343 }
30344
30345 @Override
30346 public int hashCode() {
30347 List<Object> list = new ArrayList<Object>();
30348
30349 boolean present_success = true && (isSetSuccess());
30350 list.add(present_success);
30351 if (present_success)
30352 list.add(success);
30353
30354 boolean present_e = true && (isSetE());
30355 list.add(present_e);
30356 if (present_e)
30357 list.add(e);
30358
30359 return list.hashCode();
30360 }
30361
30362 @Override
30363 public int compareTo(watchFile_result other) {
30364 if (!getClass().equals(other.getClass())) {
30365 return getClass().getName().compareTo(other.getClass().getName());
30366 }
30367
30368 int lastComparison = 0;
30369
30370 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
30371 if (lastComparison != 0) {
30372 return lastComparison;
30373 }
30374 if (isSetSuccess()) {
30375 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
30376 if (lastComparison != 0) {
30377 return lastComparison;
30378 }
30379 }
30380 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
30381 if (lastComparison != 0) {
30382 return lastComparison;
30383 }
30384 if (isSetE()) {
30385 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
30386 if (lastComparison != 0) {
30387 return lastComparison;
30388 }
30389 }
30390 return 0;
30391 }
30392
30393 public _Fields fieldForId(int fieldId) {
30394 return _Fields.findByThriftId(fieldId);
30395 }
30396
30397 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30398 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30399 }
30400
30401 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30402 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30403 }
30404
30405 @Override
30406 public String toString() {
30407 StringBuilder sb = new StringBuilder("watchFile_result(");
30408 boolean first = true;
30409
30410 sb.append("success:");
30411 if (this.success == null) {
30412 sb.append("null");
30413 } else {
30414 sb.append(this.success);
30415 }
30416 first = false;
30417 if (!first) sb.append(", ");
30418 sb.append("e:");
30419 if (this.e == null) {
30420 sb.append("null");
30421 } else {
30422 sb.append(this.e);
30423 }
30424 first = false;
30425 sb.append(")");
30426 return sb.toString();
30427 }
30428
30429 public void validate() throws org.apache.thrift.TException {
30430
30431
30432 if (success != null) {
30433 success.validate();
30434 }
30435 }
30436
30437 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30438 try {
30439 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30440 } catch (org.apache.thrift.TException te) {
30441 throw new java.io.IOException(te);
30442 }
30443 }
30444
30445 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30446 try {
30447 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30448 } catch (org.apache.thrift.TException te) {
30449 throw new java.io.IOException(te);
30450 }
30451 }
30452
30453 private static class watchFile_resultStandardSchemeFactory implements SchemeFactory {
30454 public watchFile_resultStandardScheme getScheme() {
30455 return new watchFile_resultStandardScheme();
30456 }
30457 }
30458
30459 private static class watchFile_resultStandardScheme extends StandardScheme<watchFile_result> {
30460
30461 public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_result struct) throws org.apache.thrift.TException {
30462 org.apache.thrift.protocol.TField schemeField;
30463 iprot.readStructBegin();
30464 while (true)
30465 {
30466 schemeField = iprot.readFieldBegin();
30467 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
30468 break;
30469 }
30470 switch (schemeField.id) {
30471 case 0:
30472 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
30473 struct.success = new WatchFileResult();
30474 struct.success.read(iprot);
30475 struct.setSuccessIsSet(true);
30476 } else {
30477 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30478 }
30479 break;
30480 case 1:
30481 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
30482 struct.e = new CentralDogmaException();
30483 struct.e.read(iprot);
30484 struct.setEIsSet(true);
30485 } else {
30486 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30487 }
30488 break;
30489 default:
30490 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30491 }
30492 iprot.readFieldEnd();
30493 }
30494 iprot.readStructEnd();
30495
30496
30497 struct.validate();
30498 }
30499
30500 public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_result struct) throws org.apache.thrift.TException {
30501 struct.validate();
30502
30503 oprot.writeStructBegin(STRUCT_DESC);
30504 if (struct.success != null) {
30505 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30506 struct.success.write(oprot);
30507 oprot.writeFieldEnd();
30508 }
30509 if (struct.e != null) {
30510 oprot.writeFieldBegin(E_FIELD_DESC);
30511 struct.e.write(oprot);
30512 oprot.writeFieldEnd();
30513 }
30514 oprot.writeFieldStop();
30515 oprot.writeStructEnd();
30516 }
30517
30518 }
30519
30520 private static class watchFile_resultTupleSchemeFactory implements SchemeFactory {
30521 public watchFile_resultTupleScheme getScheme() {
30522 return new watchFile_resultTupleScheme();
30523 }
30524 }
30525
30526 private static class watchFile_resultTupleScheme extends TupleScheme<watchFile_result> {
30527
30528 @Override
30529 public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException {
30530 TTupleProtocol oprot = (TTupleProtocol) prot;
30531 BitSet optionals = new BitSet();
30532 if (struct.isSetSuccess()) {
30533 optionals.set(0);
30534 }
30535 if (struct.isSetE()) {
30536 optionals.set(1);
30537 }
30538 oprot.writeBitSet(optionals, 2);
30539 if (struct.isSetSuccess()) {
30540 struct.success.write(oprot);
30541 }
30542 if (struct.isSetE()) {
30543 struct.e.write(oprot);
30544 }
30545 }
30546
30547 @Override
30548 public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException {
30549 TTupleProtocol iprot = (TTupleProtocol) prot;
30550 BitSet incoming = iprot.readBitSet(2);
30551 if (incoming.get(0)) {
30552 struct.success = new WatchFileResult();
30553 struct.success.read(iprot);
30554 struct.setSuccessIsSet(true);
30555 }
30556 if (incoming.get(1)) {
30557 struct.e = new CentralDogmaException();
30558 struct.e.read(iprot);
30559 struct.setEIsSet(true);
30560 }
30561 }
30562 }
30563
30564 }
30565
30566 public static class getSchema_args implements org.apache.thrift.TBase<getSchema_args, getSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_args> {
30567 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args");
30568
30569 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
30570
30571 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30572 static {
30573 schemes.put(StandardScheme.class, new getSchema_argsStandardSchemeFactory());
30574 schemes.put(TupleScheme.class, new getSchema_argsTupleSchemeFactory());
30575 }
30576
30577 public String projectName;
30578
30579
30580 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30581 PROJECT_NAME((short)1, "projectName");
30582
30583 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30584
30585 static {
30586 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30587 byName.put(field.getFieldName(), field);
30588 }
30589 }
30590
30591
30592
30593
30594 public static _Fields findByThriftId(int fieldId) {
30595 switch(fieldId) {
30596 case 1:
30597 return PROJECT_NAME;
30598 default:
30599 return null;
30600 }
30601 }
30602
30603
30604
30605
30606
30607 public static _Fields findByThriftIdOrThrow(int fieldId) {
30608 _Fields fields = findByThriftId(fieldId);
30609 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30610 return fields;
30611 }
30612
30613
30614
30615
30616 public static _Fields findByName(String name) {
30617 return byName.get(name);
30618 }
30619
30620 private final short _thriftId;
30621 private final String _fieldName;
30622
30623 _Fields(short thriftId, String fieldName) {
30624 _thriftId = thriftId;
30625 _fieldName = fieldName;
30626 }
30627
30628 public short getThriftFieldId() {
30629 return _thriftId;
30630 }
30631
30632 public String getFieldName() {
30633 return _fieldName;
30634 }
30635 }
30636
30637
30638 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30639 static {
30640 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30641 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
30642 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30643 metaDataMap = Collections.unmodifiableMap(tmpMap);
30644 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_args.class, metaDataMap);
30645 }
30646
30647 public getSchema_args() {
30648 }
30649
30650 public getSchema_args(
30651 String projectName)
30652 {
30653 this();
30654 this.projectName = projectName;
30655 }
30656
30657
30658
30659
30660 public getSchema_args(getSchema_args other) {
30661 if (other.isSetProjectName()) {
30662 this.projectName = other.projectName;
30663 }
30664 }
30665
30666 public getSchema_args deepCopy() {
30667 return new getSchema_args(this);
30668 }
30669
30670 @Override
30671 public void clear() {
30672 this.projectName = null;
30673 }
30674
30675 public String getProjectName() {
30676 return this.projectName;
30677 }
30678
30679 public getSchema_args setProjectName(String projectName) {
30680 this.projectName = projectName;
30681 return this;
30682 }
30683
30684 public void unsetProjectName() {
30685 this.projectName = null;
30686 }
30687
30688
30689 public boolean isSetProjectName() {
30690 return this.projectName != null;
30691 }
30692
30693 public void setProjectNameIsSet(boolean value) {
30694 if (!value) {
30695 this.projectName = null;
30696 }
30697 }
30698
30699 public void setFieldValue(_Fields field, Object value) {
30700 switch (field) {
30701 case PROJECT_NAME:
30702 if (value == null) {
30703 unsetProjectName();
30704 } else {
30705 setProjectName((String)value);
30706 }
30707 break;
30708
30709 }
30710 }
30711
30712 public Object getFieldValue(_Fields field) {
30713 switch (field) {
30714 case PROJECT_NAME:
30715 return getProjectName();
30716
30717 }
30718 throw new IllegalStateException();
30719 }
30720
30721
30722 public boolean isSet(_Fields field) {
30723 if (field == null) {
30724 throw new IllegalArgumentException();
30725 }
30726
30727 switch (field) {
30728 case PROJECT_NAME:
30729 return isSetProjectName();
30730 }
30731 throw new IllegalStateException();
30732 }
30733
30734 @Override
30735 public boolean equals(Object that) {
30736 if (that == null)
30737 return false;
30738 if (that instanceof getSchema_args)
30739 return this.equals((getSchema_args)that);
30740 return false;
30741 }
30742
30743 public boolean equals(getSchema_args that) {
30744 if (that == null)
30745 return false;
30746
30747 boolean this_present_projectName = true && this.isSetProjectName();
30748 boolean that_present_projectName = true && that.isSetProjectName();
30749 if (this_present_projectName || that_present_projectName) {
30750 if (!(this_present_projectName && that_present_projectName))
30751 return false;
30752 if (!this.projectName.equals(that.projectName))
30753 return false;
30754 }
30755
30756 return true;
30757 }
30758
30759 @Override
30760 public int hashCode() {
30761 List<Object> list = new ArrayList<Object>();
30762
30763 boolean present_projectName = true && (isSetProjectName());
30764 list.add(present_projectName);
30765 if (present_projectName)
30766 list.add(projectName);
30767
30768 return list.hashCode();
30769 }
30770
30771 @Override
30772 public int compareTo(getSchema_args other) {
30773 if (!getClass().equals(other.getClass())) {
30774 return getClass().getName().compareTo(other.getClass().getName());
30775 }
30776
30777 int lastComparison = 0;
30778
30779 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
30780 if (lastComparison != 0) {
30781 return lastComparison;
30782 }
30783 if (isSetProjectName()) {
30784 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
30785 if (lastComparison != 0) {
30786 return lastComparison;
30787 }
30788 }
30789 return 0;
30790 }
30791
30792 public _Fields fieldForId(int fieldId) {
30793 return _Fields.findByThriftId(fieldId);
30794 }
30795
30796 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30797 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30798 }
30799
30800 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30801 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30802 }
30803
30804 @Override
30805 public String toString() {
30806 StringBuilder sb = new StringBuilder("getSchema_args(");
30807 boolean first = true;
30808
30809 sb.append("projectName:");
30810 if (this.projectName == null) {
30811 sb.append("null");
30812 } else {
30813 sb.append(this.projectName);
30814 }
30815 first = false;
30816 sb.append(")");
30817 return sb.toString();
30818 }
30819
30820 public void validate() throws org.apache.thrift.TException {
30821
30822
30823 }
30824
30825 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30826 try {
30827 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30828 } catch (org.apache.thrift.TException te) {
30829 throw new java.io.IOException(te);
30830 }
30831 }
30832
30833 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30834 try {
30835 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30836 } catch (org.apache.thrift.TException te) {
30837 throw new java.io.IOException(te);
30838 }
30839 }
30840
30841 private static class getSchema_argsStandardSchemeFactory implements SchemeFactory {
30842 public getSchema_argsStandardScheme getScheme() {
30843 return new getSchema_argsStandardScheme();
30844 }
30845 }
30846
30847 private static class getSchema_argsStandardScheme extends StandardScheme<getSchema_args> {
30848
30849 public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_args struct) throws org.apache.thrift.TException {
30850 org.apache.thrift.protocol.TField schemeField;
30851 iprot.readStructBegin();
30852 while (true)
30853 {
30854 schemeField = iprot.readFieldBegin();
30855 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
30856 break;
30857 }
30858 switch (schemeField.id) {
30859 case 1:
30860 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30861 struct.projectName = iprot.readString();
30862 struct.setProjectNameIsSet(true);
30863 } else {
30864 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30865 }
30866 break;
30867 default:
30868 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30869 }
30870 iprot.readFieldEnd();
30871 }
30872 iprot.readStructEnd();
30873
30874
30875 struct.validate();
30876 }
30877
30878 public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_args struct) throws org.apache.thrift.TException {
30879 struct.validate();
30880
30881 oprot.writeStructBegin(STRUCT_DESC);
30882 if (struct.projectName != null) {
30883 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
30884 oprot.writeString(struct.projectName);
30885 oprot.writeFieldEnd();
30886 }
30887 oprot.writeFieldStop();
30888 oprot.writeStructEnd();
30889 }
30890
30891 }
30892
30893 private static class getSchema_argsTupleSchemeFactory implements SchemeFactory {
30894 public getSchema_argsTupleScheme getScheme() {
30895 return new getSchema_argsTupleScheme();
30896 }
30897 }
30898
30899 private static class getSchema_argsTupleScheme extends TupleScheme<getSchema_args> {
30900
30901 @Override
30902 public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException {
30903 TTupleProtocol oprot = (TTupleProtocol) prot;
30904 BitSet optionals = new BitSet();
30905 if (struct.isSetProjectName()) {
30906 optionals.set(0);
30907 }
30908 oprot.writeBitSet(optionals, 1);
30909 if (struct.isSetProjectName()) {
30910 oprot.writeString(struct.projectName);
30911 }
30912 }
30913
30914 @Override
30915 public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException {
30916 TTupleProtocol iprot = (TTupleProtocol) prot;
30917 BitSet incoming = iprot.readBitSet(1);
30918 if (incoming.get(0)) {
30919 struct.projectName = iprot.readString();
30920 struct.setProjectNameIsSet(true);
30921 }
30922 }
30923 }
30924
30925 }
30926
30927 public static class getSchema_result implements org.apache.thrift.TBase<getSchema_result, getSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSchema_result> {
30928 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_result");
30929
30930 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
30931 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30932
30933 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30934 static {
30935 schemes.put(StandardScheme.class, new getSchema_resultStandardSchemeFactory());
30936 schemes.put(TupleScheme.class, new getSchema_resultTupleSchemeFactory());
30937 }
30938
30939 public Schema success;
30940 public CentralDogmaException e;
30941
30942
30943 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30944 SUCCESS((short)0, "success"),
30945 E((short)1, "e");
30946
30947 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30948
30949 static {
30950 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30951 byName.put(field.getFieldName(), field);
30952 }
30953 }
30954
30955
30956
30957
30958 public static _Fields findByThriftId(int fieldId) {
30959 switch(fieldId) {
30960 case 0:
30961 return SUCCESS;
30962 case 1:
30963 return E;
30964 default:
30965 return null;
30966 }
30967 }
30968
30969
30970
30971
30972
30973 public static _Fields findByThriftIdOrThrow(int fieldId) {
30974 _Fields fields = findByThriftId(fieldId);
30975 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30976 return fields;
30977 }
30978
30979
30980
30981
30982 public static _Fields findByName(String name) {
30983 return byName.get(name);
30984 }
30985
30986 private final short _thriftId;
30987 private final String _fieldName;
30988
30989 _Fields(short thriftId, String fieldName) {
30990 _thriftId = thriftId;
30991 _fieldName = fieldName;
30992 }
30993
30994 public short getThriftFieldId() {
30995 return _thriftId;
30996 }
30997
30998 public String getFieldName() {
30999 return _fieldName;
31000 }
31001 }
31002
31003
31004 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31005 static {
31006 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31007 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
31008 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Schema.class)));
31009 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
31010 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31011 metaDataMap = Collections.unmodifiableMap(tmpMap);
31012 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSchema_result.class, metaDataMap);
31013 }
31014
31015 public getSchema_result() {
31016 }
31017
31018 public getSchema_result(
31019 Schema success,
31020 CentralDogmaException e)
31021 {
31022 this();
31023 this.success = success;
31024 this.e = e;
31025 }
31026
31027
31028
31029
31030 public getSchema_result(getSchema_result other) {
31031 if (other.isSetSuccess()) {
31032 this.success = new Schema(other.success);
31033 }
31034 if (other.isSetE()) {
31035 this.e = new CentralDogmaException(other.e);
31036 }
31037 }
31038
31039 public getSchema_result deepCopy() {
31040 return new getSchema_result(this);
31041 }
31042
31043 @Override
31044 public void clear() {
31045 this.success = null;
31046 this.e = null;
31047 }
31048
31049 public Schema getSuccess() {
31050 return this.success;
31051 }
31052
31053 public getSchema_result setSuccess(Schema success) {
31054 this.success = success;
31055 return this;
31056 }
31057
31058 public void unsetSuccess() {
31059 this.success = null;
31060 }
31061
31062
31063 public boolean isSetSuccess() {
31064 return this.success != null;
31065 }
31066
31067 public void setSuccessIsSet(boolean value) {
31068 if (!value) {
31069 this.success = null;
31070 }
31071 }
31072
31073 public CentralDogmaException getE() {
31074 return this.e;
31075 }
31076
31077 public getSchema_result setE(CentralDogmaException e) {
31078 this.e = e;
31079 return this;
31080 }
31081
31082 public void unsetE() {
31083 this.e = null;
31084 }
31085
31086
31087 public boolean isSetE() {
31088 return this.e != null;
31089 }
31090
31091 public void setEIsSet(boolean value) {
31092 if (!value) {
31093 this.e = null;
31094 }
31095 }
31096
31097 public void setFieldValue(_Fields field, Object value) {
31098 switch (field) {
31099 case SUCCESS:
31100 if (value == null) {
31101 unsetSuccess();
31102 } else {
31103 setSuccess((Schema)value);
31104 }
31105 break;
31106
31107 case E:
31108 if (value == null) {
31109 unsetE();
31110 } else {
31111 setE((CentralDogmaException)value);
31112 }
31113 break;
31114
31115 }
31116 }
31117
31118 public Object getFieldValue(_Fields field) {
31119 switch (field) {
31120 case SUCCESS:
31121 return getSuccess();
31122
31123 case E:
31124 return getE();
31125
31126 }
31127 throw new IllegalStateException();
31128 }
31129
31130
31131 public boolean isSet(_Fields field) {
31132 if (field == null) {
31133 throw new IllegalArgumentException();
31134 }
31135
31136 switch (field) {
31137 case SUCCESS:
31138 return isSetSuccess();
31139 case E:
31140 return isSetE();
31141 }
31142 throw new IllegalStateException();
31143 }
31144
31145 @Override
31146 public boolean equals(Object that) {
31147 if (that == null)
31148 return false;
31149 if (that instanceof getSchema_result)
31150 return this.equals((getSchema_result)that);
31151 return false;
31152 }
31153
31154 public boolean equals(getSchema_result that) {
31155 if (that == null)
31156 return false;
31157
31158 boolean this_present_success = true && this.isSetSuccess();
31159 boolean that_present_success = true && that.isSetSuccess();
31160 if (this_present_success || that_present_success) {
31161 if (!(this_present_success && that_present_success))
31162 return false;
31163 if (!this.success.equals(that.success))
31164 return false;
31165 }
31166
31167 boolean this_present_e = true && this.isSetE();
31168 boolean that_present_e = true && that.isSetE();
31169 if (this_present_e || that_present_e) {
31170 if (!(this_present_e && that_present_e))
31171 return false;
31172 if (!this.e.equals(that.e))
31173 return false;
31174 }
31175
31176 return true;
31177 }
31178
31179 @Override
31180 public int hashCode() {
31181 List<Object> list = new ArrayList<Object>();
31182
31183 boolean present_success = true && (isSetSuccess());
31184 list.add(present_success);
31185 if (present_success)
31186 list.add(success);
31187
31188 boolean present_e = true && (isSetE());
31189 list.add(present_e);
31190 if (present_e)
31191 list.add(e);
31192
31193 return list.hashCode();
31194 }
31195
31196 @Override
31197 public int compareTo(getSchema_result other) {
31198 if (!getClass().equals(other.getClass())) {
31199 return getClass().getName().compareTo(other.getClass().getName());
31200 }
31201
31202 int lastComparison = 0;
31203
31204 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
31205 if (lastComparison != 0) {
31206 return lastComparison;
31207 }
31208 if (isSetSuccess()) {
31209 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
31210 if (lastComparison != 0) {
31211 return lastComparison;
31212 }
31213 }
31214 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
31215 if (lastComparison != 0) {
31216 return lastComparison;
31217 }
31218 if (isSetE()) {
31219 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
31220 if (lastComparison != 0) {
31221 return lastComparison;
31222 }
31223 }
31224 return 0;
31225 }
31226
31227 public _Fields fieldForId(int fieldId) {
31228 return _Fields.findByThriftId(fieldId);
31229 }
31230
31231 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31232 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31233 }
31234
31235 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31236 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31237 }
31238
31239 @Override
31240 public String toString() {
31241 StringBuilder sb = new StringBuilder("getSchema_result(");
31242 boolean first = true;
31243
31244 sb.append("success:");
31245 if (this.success == null) {
31246 sb.append("null");
31247 } else {
31248 sb.append(this.success);
31249 }
31250 first = false;
31251 if (!first) sb.append(", ");
31252 sb.append("e:");
31253 if (this.e == null) {
31254 sb.append("null");
31255 } else {
31256 sb.append(this.e);
31257 }
31258 first = false;
31259 sb.append(")");
31260 return sb.toString();
31261 }
31262
31263 public void validate() throws org.apache.thrift.TException {
31264
31265
31266 if (success != null) {
31267 success.validate();
31268 }
31269 }
31270
31271 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31272 try {
31273 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31274 } catch (org.apache.thrift.TException te) {
31275 throw new java.io.IOException(te);
31276 }
31277 }
31278
31279 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31280 try {
31281 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31282 } catch (org.apache.thrift.TException te) {
31283 throw new java.io.IOException(te);
31284 }
31285 }
31286
31287 private static class getSchema_resultStandardSchemeFactory implements SchemeFactory {
31288 public getSchema_resultStandardScheme getScheme() {
31289 return new getSchema_resultStandardScheme();
31290 }
31291 }
31292
31293 private static class getSchema_resultStandardScheme extends StandardScheme<getSchema_result> {
31294
31295 public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_result struct) throws org.apache.thrift.TException {
31296 org.apache.thrift.protocol.TField schemeField;
31297 iprot.readStructBegin();
31298 while (true)
31299 {
31300 schemeField = iprot.readFieldBegin();
31301 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31302 break;
31303 }
31304 switch (schemeField.id) {
31305 case 0:
31306 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31307 struct.success = new Schema();
31308 struct.success.read(iprot);
31309 struct.setSuccessIsSet(true);
31310 } else {
31311 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31312 }
31313 break;
31314 case 1:
31315 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31316 struct.e = new CentralDogmaException();
31317 struct.e.read(iprot);
31318 struct.setEIsSet(true);
31319 } else {
31320 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31321 }
31322 break;
31323 default:
31324 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31325 }
31326 iprot.readFieldEnd();
31327 }
31328 iprot.readStructEnd();
31329
31330
31331 struct.validate();
31332 }
31333
31334 public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_result struct) throws org.apache.thrift.TException {
31335 struct.validate();
31336
31337 oprot.writeStructBegin(STRUCT_DESC);
31338 if (struct.success != null) {
31339 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31340 struct.success.write(oprot);
31341 oprot.writeFieldEnd();
31342 }
31343 if (struct.e != null) {
31344 oprot.writeFieldBegin(E_FIELD_DESC);
31345 struct.e.write(oprot);
31346 oprot.writeFieldEnd();
31347 }
31348 oprot.writeFieldStop();
31349 oprot.writeStructEnd();
31350 }
31351
31352 }
31353
31354 private static class getSchema_resultTupleSchemeFactory implements SchemeFactory {
31355 public getSchema_resultTupleScheme getScheme() {
31356 return new getSchema_resultTupleScheme();
31357 }
31358 }
31359
31360 private static class getSchema_resultTupleScheme extends TupleScheme<getSchema_result> {
31361
31362 @Override
31363 public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException {
31364 TTupleProtocol oprot = (TTupleProtocol) prot;
31365 BitSet optionals = new BitSet();
31366 if (struct.isSetSuccess()) {
31367 optionals.set(0);
31368 }
31369 if (struct.isSetE()) {
31370 optionals.set(1);
31371 }
31372 oprot.writeBitSet(optionals, 2);
31373 if (struct.isSetSuccess()) {
31374 struct.success.write(oprot);
31375 }
31376 if (struct.isSetE()) {
31377 struct.e.write(oprot);
31378 }
31379 }
31380
31381 @Override
31382 public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException {
31383 TTupleProtocol iprot = (TTupleProtocol) prot;
31384 BitSet incoming = iprot.readBitSet(2);
31385 if (incoming.get(0)) {
31386 struct.success = new Schema();
31387 struct.success.read(iprot);
31388 struct.setSuccessIsSet(true);
31389 }
31390 if (incoming.get(1)) {
31391 struct.e = new CentralDogmaException();
31392 struct.e.read(iprot);
31393 struct.setEIsSet(true);
31394 }
31395 }
31396 }
31397
31398 }
31399
31400 public static class saveSchema_args implements org.apache.thrift.TBase<saveSchema_args, saveSchema_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveSchema_args> {
31401 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_args");
31402
31403 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
31404 private static final org.apache.thrift.protocol.TField SCHEMA_FIELD_DESC = new org.apache.thrift.protocol.TField("schema", org.apache.thrift.protocol.TType.STRUCT, (short)2);
31405
31406 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31407 static {
31408 schemes.put(StandardScheme.class, new saveSchema_argsStandardSchemeFactory());
31409 schemes.put(TupleScheme.class, new saveSchema_argsTupleSchemeFactory());
31410 }
31411
31412 public String projectName;
31413 public Schema schema;
31414
31415
31416 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31417 PROJECT_NAME((short)1, "projectName"),
31418 SCHEMA((short)2, "schema");
31419
31420 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31421
31422 static {
31423 for (_Fields field : EnumSet.allOf(_Fields.class)) {
31424 byName.put(field.getFieldName(), field);
31425 }
31426 }
31427
31428
31429
31430
31431 public static _Fields findByThriftId(int fieldId) {
31432 switch(fieldId) {
31433 case 1:
31434 return PROJECT_NAME;
31435 case 2:
31436 return SCHEMA;
31437 default:
31438 return null;
31439 }
31440 }
31441
31442
31443
31444
31445
31446 public static _Fields findByThriftIdOrThrow(int fieldId) {
31447 _Fields fields = findByThriftId(fieldId);
31448 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31449 return fields;
31450 }
31451
31452
31453
31454
31455 public static _Fields findByName(String name) {
31456 return byName.get(name);
31457 }
31458
31459 private final short _thriftId;
31460 private final String _fieldName;
31461
31462 _Fields(short thriftId, String fieldName) {
31463 _thriftId = thriftId;
31464 _fieldName = fieldName;
31465 }
31466
31467 public short getThriftFieldId() {
31468 return _thriftId;
31469 }
31470
31471 public String getFieldName() {
31472 return _fieldName;
31473 }
31474 }
31475
31476
31477 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31478 static {
31479 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31480 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
31481 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31482 tmpMap.put(_Fields.SCHEMA, new org.apache.thrift.meta_data.FieldMetaData("schema", org.apache.thrift.TFieldRequirementType.DEFAULT,
31483 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Schema.class)));
31484 metaDataMap = Collections.unmodifiableMap(tmpMap);
31485 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveSchema_args.class, metaDataMap);
31486 }
31487
31488 public saveSchema_args() {
31489 }
31490
31491 public saveSchema_args(
31492 String projectName,
31493 Schema schema)
31494 {
31495 this();
31496 this.projectName = projectName;
31497 this.schema = schema;
31498 }
31499
31500
31501
31502
31503 public saveSchema_args(saveSchema_args other) {
31504 if (other.isSetProjectName()) {
31505 this.projectName = other.projectName;
31506 }
31507 if (other.isSetSchema()) {
31508 this.schema = new Schema(other.schema);
31509 }
31510 }
31511
31512 public saveSchema_args deepCopy() {
31513 return new saveSchema_args(this);
31514 }
31515
31516 @Override
31517 public void clear() {
31518 this.projectName = null;
31519 this.schema = null;
31520 }
31521
31522 public String getProjectName() {
31523 return this.projectName;
31524 }
31525
31526 public saveSchema_args setProjectName(String projectName) {
31527 this.projectName = projectName;
31528 return this;
31529 }
31530
31531 public void unsetProjectName() {
31532 this.projectName = null;
31533 }
31534
31535
31536 public boolean isSetProjectName() {
31537 return this.projectName != null;
31538 }
31539
31540 public void setProjectNameIsSet(boolean value) {
31541 if (!value) {
31542 this.projectName = null;
31543 }
31544 }
31545
31546 public Schema getSchema() {
31547 return this.schema;
31548 }
31549
31550 public saveSchema_args setSchema(Schema schema) {
31551 this.schema = schema;
31552 return this;
31553 }
31554
31555 public void unsetSchema() {
31556 this.schema = null;
31557 }
31558
31559
31560 public boolean isSetSchema() {
31561 return this.schema != null;
31562 }
31563
31564 public void setSchemaIsSet(boolean value) {
31565 if (!value) {
31566 this.schema = null;
31567 }
31568 }
31569
31570 public void setFieldValue(_Fields field, Object value) {
31571 switch (field) {
31572 case PROJECT_NAME:
31573 if (value == null) {
31574 unsetProjectName();
31575 } else {
31576 setProjectName((String)value);
31577 }
31578 break;
31579
31580 case SCHEMA:
31581 if (value == null) {
31582 unsetSchema();
31583 } else {
31584 setSchema((Schema)value);
31585 }
31586 break;
31587
31588 }
31589 }
31590
31591 public Object getFieldValue(_Fields field) {
31592 switch (field) {
31593 case PROJECT_NAME:
31594 return getProjectName();
31595
31596 case SCHEMA:
31597 return getSchema();
31598
31599 }
31600 throw new IllegalStateException();
31601 }
31602
31603
31604 public boolean isSet(_Fields field) {
31605 if (field == null) {
31606 throw new IllegalArgumentException();
31607 }
31608
31609 switch (field) {
31610 case PROJECT_NAME:
31611 return isSetProjectName();
31612 case SCHEMA:
31613 return isSetSchema();
31614 }
31615 throw new IllegalStateException();
31616 }
31617
31618 @Override
31619 public boolean equals(Object that) {
31620 if (that == null)
31621 return false;
31622 if (that instanceof saveSchema_args)
31623 return this.equals((saveSchema_args)that);
31624 return false;
31625 }
31626
31627 public boolean equals(saveSchema_args that) {
31628 if (that == null)
31629 return false;
31630
31631 boolean this_present_projectName = true && this.isSetProjectName();
31632 boolean that_present_projectName = true && that.isSetProjectName();
31633 if (this_present_projectName || that_present_projectName) {
31634 if (!(this_present_projectName && that_present_projectName))
31635 return false;
31636 if (!this.projectName.equals(that.projectName))
31637 return false;
31638 }
31639
31640 boolean this_present_schema = true && this.isSetSchema();
31641 boolean that_present_schema = true && that.isSetSchema();
31642 if (this_present_schema || that_present_schema) {
31643 if (!(this_present_schema && that_present_schema))
31644 return false;
31645 if (!this.schema.equals(that.schema))
31646 return false;
31647 }
31648
31649 return true;
31650 }
31651
31652 @Override
31653 public int hashCode() {
31654 List<Object> list = new ArrayList<Object>();
31655
31656 boolean present_projectName = true && (isSetProjectName());
31657 list.add(present_projectName);
31658 if (present_projectName)
31659 list.add(projectName);
31660
31661 boolean present_schema = true && (isSetSchema());
31662 list.add(present_schema);
31663 if (present_schema)
31664 list.add(schema);
31665
31666 return list.hashCode();
31667 }
31668
31669 @Override
31670 public int compareTo(saveSchema_args other) {
31671 if (!getClass().equals(other.getClass())) {
31672 return getClass().getName().compareTo(other.getClass().getName());
31673 }
31674
31675 int lastComparison = 0;
31676
31677 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
31678 if (lastComparison != 0) {
31679 return lastComparison;
31680 }
31681 if (isSetProjectName()) {
31682 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
31683 if (lastComparison != 0) {
31684 return lastComparison;
31685 }
31686 }
31687 lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema());
31688 if (lastComparison != 0) {
31689 return lastComparison;
31690 }
31691 if (isSetSchema()) {
31692 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema);
31693 if (lastComparison != 0) {
31694 return lastComparison;
31695 }
31696 }
31697 return 0;
31698 }
31699
31700 public _Fields fieldForId(int fieldId) {
31701 return _Fields.findByThriftId(fieldId);
31702 }
31703
31704 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31705 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31706 }
31707
31708 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31709 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31710 }
31711
31712 @Override
31713 public String toString() {
31714 StringBuilder sb = new StringBuilder("saveSchema_args(");
31715 boolean first = true;
31716
31717 sb.append("projectName:");
31718 if (this.projectName == null) {
31719 sb.append("null");
31720 } else {
31721 sb.append(this.projectName);
31722 }
31723 first = false;
31724 if (!first) sb.append(", ");
31725 sb.append("schema:");
31726 if (this.schema == null) {
31727 sb.append("null");
31728 } else {
31729 sb.append(this.schema);
31730 }
31731 first = false;
31732 sb.append(")");
31733 return sb.toString();
31734 }
31735
31736 public void validate() throws org.apache.thrift.TException {
31737
31738
31739 if (schema != null) {
31740 schema.validate();
31741 }
31742 }
31743
31744 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31745 try {
31746 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31747 } catch (org.apache.thrift.TException te) {
31748 throw new java.io.IOException(te);
31749 }
31750 }
31751
31752 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31753 try {
31754 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31755 } catch (org.apache.thrift.TException te) {
31756 throw new java.io.IOException(te);
31757 }
31758 }
31759
31760 private static class saveSchema_argsStandardSchemeFactory implements SchemeFactory {
31761 public saveSchema_argsStandardScheme getScheme() {
31762 return new saveSchema_argsStandardScheme();
31763 }
31764 }
31765
31766 private static class saveSchema_argsStandardScheme extends StandardScheme<saveSchema_args> {
31767
31768 public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_args struct) throws org.apache.thrift.TException {
31769 org.apache.thrift.protocol.TField schemeField;
31770 iprot.readStructBegin();
31771 while (true)
31772 {
31773 schemeField = iprot.readFieldBegin();
31774 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31775 break;
31776 }
31777 switch (schemeField.id) {
31778 case 1:
31779 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
31780 struct.projectName = iprot.readString();
31781 struct.setProjectNameIsSet(true);
31782 } else {
31783 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31784 }
31785 break;
31786 case 2:
31787 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31788 struct.schema = new Schema();
31789 struct.schema.read(iprot);
31790 struct.setSchemaIsSet(true);
31791 } else {
31792 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31793 }
31794 break;
31795 default:
31796 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31797 }
31798 iprot.readFieldEnd();
31799 }
31800 iprot.readStructEnd();
31801
31802
31803 struct.validate();
31804 }
31805
31806 public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_args struct) throws org.apache.thrift.TException {
31807 struct.validate();
31808
31809 oprot.writeStructBegin(STRUCT_DESC);
31810 if (struct.projectName != null) {
31811 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
31812 oprot.writeString(struct.projectName);
31813 oprot.writeFieldEnd();
31814 }
31815 if (struct.schema != null) {
31816 oprot.writeFieldBegin(SCHEMA_FIELD_DESC);
31817 struct.schema.write(oprot);
31818 oprot.writeFieldEnd();
31819 }
31820 oprot.writeFieldStop();
31821 oprot.writeStructEnd();
31822 }
31823
31824 }
31825
31826 private static class saveSchema_argsTupleSchemeFactory implements SchemeFactory {
31827 public saveSchema_argsTupleScheme getScheme() {
31828 return new saveSchema_argsTupleScheme();
31829 }
31830 }
31831
31832 private static class saveSchema_argsTupleScheme extends TupleScheme<saveSchema_args> {
31833
31834 @Override
31835 public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException {
31836 TTupleProtocol oprot = (TTupleProtocol) prot;
31837 BitSet optionals = new BitSet();
31838 if (struct.isSetProjectName()) {
31839 optionals.set(0);
31840 }
31841 if (struct.isSetSchema()) {
31842 optionals.set(1);
31843 }
31844 oprot.writeBitSet(optionals, 2);
31845 if (struct.isSetProjectName()) {
31846 oprot.writeString(struct.projectName);
31847 }
31848 if (struct.isSetSchema()) {
31849 struct.schema.write(oprot);
31850 }
31851 }
31852
31853 @Override
31854 public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException {
31855 TTupleProtocol iprot = (TTupleProtocol) prot;
31856 BitSet incoming = iprot.readBitSet(2);
31857 if (incoming.get(0)) {
31858 struct.projectName = iprot.readString();
31859 struct.setProjectNameIsSet(true);
31860 }
31861 if (incoming.get(1)) {
31862 struct.schema = new Schema();
31863 struct.schema.read(iprot);
31864 struct.setSchemaIsSet(true);
31865 }
31866 }
31867 }
31868
31869 }
31870
31871 public static class saveSchema_result implements org.apache.thrift.TBase<saveSchema_result, saveSchema_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveSchema_result> {
31872 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_result");
31873
31874 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
31875
31876 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31877 static {
31878 schemes.put(StandardScheme.class, new saveSchema_resultStandardSchemeFactory());
31879 schemes.put(TupleScheme.class, new saveSchema_resultTupleSchemeFactory());
31880 }
31881
31882 public CentralDogmaException e;
31883
31884
31885 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31886 E((short)1, "e");
31887
31888 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31889
31890 static {
31891 for (_Fields field : EnumSet.allOf(_Fields.class)) {
31892 byName.put(field.getFieldName(), field);
31893 }
31894 }
31895
31896
31897
31898
31899 public static _Fields findByThriftId(int fieldId) {
31900 switch(fieldId) {
31901 case 1:
31902 return E;
31903 default:
31904 return null;
31905 }
31906 }
31907
31908
31909
31910
31911
31912 public static _Fields findByThriftIdOrThrow(int fieldId) {
31913 _Fields fields = findByThriftId(fieldId);
31914 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31915 return fields;
31916 }
31917
31918
31919
31920
31921 public static _Fields findByName(String name) {
31922 return byName.get(name);
31923 }
31924
31925 private final short _thriftId;
31926 private final String _fieldName;
31927
31928 _Fields(short thriftId, String fieldName) {
31929 _thriftId = thriftId;
31930 _fieldName = fieldName;
31931 }
31932
31933 public short getThriftFieldId() {
31934 return _thriftId;
31935 }
31936
31937 public String getFieldName() {
31938 return _fieldName;
31939 }
31940 }
31941
31942
31943 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31944 static {
31945 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31946 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
31947 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31948 metaDataMap = Collections.unmodifiableMap(tmpMap);
31949 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveSchema_result.class, metaDataMap);
31950 }
31951
31952 public saveSchema_result() {
31953 }
31954
31955 public saveSchema_result(
31956 CentralDogmaException e)
31957 {
31958 this();
31959 this.e = e;
31960 }
31961
31962
31963
31964
31965 public saveSchema_result(saveSchema_result other) {
31966 if (other.isSetE()) {
31967 this.e = new CentralDogmaException(other.e);
31968 }
31969 }
31970
31971 public saveSchema_result deepCopy() {
31972 return new saveSchema_result(this);
31973 }
31974
31975 @Override
31976 public void clear() {
31977 this.e = null;
31978 }
31979
31980 public CentralDogmaException getE() {
31981 return this.e;
31982 }
31983
31984 public saveSchema_result setE(CentralDogmaException e) {
31985 this.e = e;
31986 return this;
31987 }
31988
31989 public void unsetE() {
31990 this.e = null;
31991 }
31992
31993
31994 public boolean isSetE() {
31995 return this.e != null;
31996 }
31997
31998 public void setEIsSet(boolean value) {
31999 if (!value) {
32000 this.e = null;
32001 }
32002 }
32003
32004 public void setFieldValue(_Fields field, Object value) {
32005 switch (field) {
32006 case E:
32007 if (value == null) {
32008 unsetE();
32009 } else {
32010 setE((CentralDogmaException)value);
32011 }
32012 break;
32013
32014 }
32015 }
32016
32017 public Object getFieldValue(_Fields field) {
32018 switch (field) {
32019 case E:
32020 return getE();
32021
32022 }
32023 throw new IllegalStateException();
32024 }
32025
32026
32027 public boolean isSet(_Fields field) {
32028 if (field == null) {
32029 throw new IllegalArgumentException();
32030 }
32031
32032 switch (field) {
32033 case E:
32034 return isSetE();
32035 }
32036 throw new IllegalStateException();
32037 }
32038
32039 @Override
32040 public boolean equals(Object that) {
32041 if (that == null)
32042 return false;
32043 if (that instanceof saveSchema_result)
32044 return this.equals((saveSchema_result)that);
32045 return false;
32046 }
32047
32048 public boolean equals(saveSchema_result that) {
32049 if (that == null)
32050 return false;
32051
32052 boolean this_present_e = true && this.isSetE();
32053 boolean that_present_e = true && that.isSetE();
32054 if (this_present_e || that_present_e) {
32055 if (!(this_present_e && that_present_e))
32056 return false;
32057 if (!this.e.equals(that.e))
32058 return false;
32059 }
32060
32061 return true;
32062 }
32063
32064 @Override
32065 public int hashCode() {
32066 List<Object> list = new ArrayList<Object>();
32067
32068 boolean present_e = true && (isSetE());
32069 list.add(present_e);
32070 if (present_e)
32071 list.add(e);
32072
32073 return list.hashCode();
32074 }
32075
32076 @Override
32077 public int compareTo(saveSchema_result other) {
32078 if (!getClass().equals(other.getClass())) {
32079 return getClass().getName().compareTo(other.getClass().getName());
32080 }
32081
32082 int lastComparison = 0;
32083
32084 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
32085 if (lastComparison != 0) {
32086 return lastComparison;
32087 }
32088 if (isSetE()) {
32089 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
32090 if (lastComparison != 0) {
32091 return lastComparison;
32092 }
32093 }
32094 return 0;
32095 }
32096
32097 public _Fields fieldForId(int fieldId) {
32098 return _Fields.findByThriftId(fieldId);
32099 }
32100
32101 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32102 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32103 }
32104
32105 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32106 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32107 }
32108
32109 @Override
32110 public String toString() {
32111 StringBuilder sb = new StringBuilder("saveSchema_result(");
32112 boolean first = true;
32113
32114 sb.append("e:");
32115 if (this.e == null) {
32116 sb.append("null");
32117 } else {
32118 sb.append(this.e);
32119 }
32120 first = false;
32121 sb.append(")");
32122 return sb.toString();
32123 }
32124
32125 public void validate() throws org.apache.thrift.TException {
32126
32127
32128 }
32129
32130 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32131 try {
32132 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32133 } catch (org.apache.thrift.TException te) {
32134 throw new java.io.IOException(te);
32135 }
32136 }
32137
32138 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32139 try {
32140 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32141 } catch (org.apache.thrift.TException te) {
32142 throw new java.io.IOException(te);
32143 }
32144 }
32145
32146 private static class saveSchema_resultStandardSchemeFactory implements SchemeFactory {
32147 public saveSchema_resultStandardScheme getScheme() {
32148 return new saveSchema_resultStandardScheme();
32149 }
32150 }
32151
32152 private static class saveSchema_resultStandardScheme extends StandardScheme<saveSchema_result> {
32153
32154 public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_result struct) throws org.apache.thrift.TException {
32155 org.apache.thrift.protocol.TField schemeField;
32156 iprot.readStructBegin();
32157 while (true)
32158 {
32159 schemeField = iprot.readFieldBegin();
32160 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32161 break;
32162 }
32163 switch (schemeField.id) {
32164 case 1:
32165 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32166 struct.e = new CentralDogmaException();
32167 struct.e.read(iprot);
32168 struct.setEIsSet(true);
32169 } else {
32170 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32171 }
32172 break;
32173 default:
32174 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32175 }
32176 iprot.readFieldEnd();
32177 }
32178 iprot.readStructEnd();
32179
32180
32181 struct.validate();
32182 }
32183
32184 public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_result struct) throws org.apache.thrift.TException {
32185 struct.validate();
32186
32187 oprot.writeStructBegin(STRUCT_DESC);
32188 if (struct.e != null) {
32189 oprot.writeFieldBegin(E_FIELD_DESC);
32190 struct.e.write(oprot);
32191 oprot.writeFieldEnd();
32192 }
32193 oprot.writeFieldStop();
32194 oprot.writeStructEnd();
32195 }
32196
32197 }
32198
32199 private static class saveSchema_resultTupleSchemeFactory implements SchemeFactory {
32200 public saveSchema_resultTupleScheme getScheme() {
32201 return new saveSchema_resultTupleScheme();
32202 }
32203 }
32204
32205 private static class saveSchema_resultTupleScheme extends TupleScheme<saveSchema_result> {
32206
32207 @Override
32208 public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException {
32209 TTupleProtocol oprot = (TTupleProtocol) prot;
32210 BitSet optionals = new BitSet();
32211 if (struct.isSetE()) {
32212 optionals.set(0);
32213 }
32214 oprot.writeBitSet(optionals, 1);
32215 if (struct.isSetE()) {
32216 struct.e.write(oprot);
32217 }
32218 }
32219
32220 @Override
32221 public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException {
32222 TTupleProtocol iprot = (TTupleProtocol) prot;
32223 BitSet incoming = iprot.readBitSet(1);
32224 if (incoming.get(0)) {
32225 struct.e = new CentralDogmaException();
32226 struct.e.read(iprot);
32227 struct.setEIsSet(true);
32228 }
32229 }
32230 }
32231
32232 }
32233
32234 public static class getNamedQuery_args implements org.apache.thrift.TBase<getNamedQuery_args, getNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<getNamedQuery_args> {
32235 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_args");
32236
32237 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
32238 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
32239
32240 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32241 static {
32242 schemes.put(StandardScheme.class, new getNamedQuery_argsStandardSchemeFactory());
32243 schemes.put(TupleScheme.class, new getNamedQuery_argsTupleSchemeFactory());
32244 }
32245
32246 public String projectName;
32247 public String name;
32248
32249
32250 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32251 PROJECT_NAME((short)1, "projectName"),
32252 NAME((short)2, "name");
32253
32254 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32255
32256 static {
32257 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32258 byName.put(field.getFieldName(), field);
32259 }
32260 }
32261
32262
32263
32264
32265 public static _Fields findByThriftId(int fieldId) {
32266 switch(fieldId) {
32267 case 1:
32268 return PROJECT_NAME;
32269 case 2:
32270 return NAME;
32271 default:
32272 return null;
32273 }
32274 }
32275
32276
32277
32278
32279
32280 public static _Fields findByThriftIdOrThrow(int fieldId) {
32281 _Fields fields = findByThriftId(fieldId);
32282 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32283 return fields;
32284 }
32285
32286
32287
32288
32289 public static _Fields findByName(String name) {
32290 return byName.get(name);
32291 }
32292
32293 private final short _thriftId;
32294 private final String _fieldName;
32295
32296 _Fields(short thriftId, String fieldName) {
32297 _thriftId = thriftId;
32298 _fieldName = fieldName;
32299 }
32300
32301 public short getThriftFieldId() {
32302 return _thriftId;
32303 }
32304
32305 public String getFieldName() {
32306 return _fieldName;
32307 }
32308 }
32309
32310
32311 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32312 static {
32313 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32314 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
32315 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32316 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
32317 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32318 metaDataMap = Collections.unmodifiableMap(tmpMap);
32319 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamedQuery_args.class, metaDataMap);
32320 }
32321
32322 public getNamedQuery_args() {
32323 }
32324
32325 public getNamedQuery_args(
32326 String projectName,
32327 String name)
32328 {
32329 this();
32330 this.projectName = projectName;
32331 this.name = name;
32332 }
32333
32334
32335
32336
32337 public getNamedQuery_args(getNamedQuery_args other) {
32338 if (other.isSetProjectName()) {
32339 this.projectName = other.projectName;
32340 }
32341 if (other.isSetName()) {
32342 this.name = other.name;
32343 }
32344 }
32345
32346 public getNamedQuery_args deepCopy() {
32347 return new getNamedQuery_args(this);
32348 }
32349
32350 @Override
32351 public void clear() {
32352 this.projectName = null;
32353 this.name = null;
32354 }
32355
32356 public String getProjectName() {
32357 return this.projectName;
32358 }
32359
32360 public getNamedQuery_args setProjectName(String projectName) {
32361 this.projectName = projectName;
32362 return this;
32363 }
32364
32365 public void unsetProjectName() {
32366 this.projectName = null;
32367 }
32368
32369
32370 public boolean isSetProjectName() {
32371 return this.projectName != null;
32372 }
32373
32374 public void setProjectNameIsSet(boolean value) {
32375 if (!value) {
32376 this.projectName = null;
32377 }
32378 }
32379
32380 public String getName() {
32381 return this.name;
32382 }
32383
32384 public getNamedQuery_args setName(String name) {
32385 this.name = name;
32386 return this;
32387 }
32388
32389 public void unsetName() {
32390 this.name = null;
32391 }
32392
32393
32394 public boolean isSetName() {
32395 return this.name != null;
32396 }
32397
32398 public void setNameIsSet(boolean value) {
32399 if (!value) {
32400 this.name = null;
32401 }
32402 }
32403
32404 public void setFieldValue(_Fields field, Object value) {
32405 switch (field) {
32406 case PROJECT_NAME:
32407 if (value == null) {
32408 unsetProjectName();
32409 } else {
32410 setProjectName((String)value);
32411 }
32412 break;
32413
32414 case NAME:
32415 if (value == null) {
32416 unsetName();
32417 } else {
32418 setName((String)value);
32419 }
32420 break;
32421
32422 }
32423 }
32424
32425 public Object getFieldValue(_Fields field) {
32426 switch (field) {
32427 case PROJECT_NAME:
32428 return getProjectName();
32429
32430 case NAME:
32431 return getName();
32432
32433 }
32434 throw new IllegalStateException();
32435 }
32436
32437
32438 public boolean isSet(_Fields field) {
32439 if (field == null) {
32440 throw new IllegalArgumentException();
32441 }
32442
32443 switch (field) {
32444 case PROJECT_NAME:
32445 return isSetProjectName();
32446 case NAME:
32447 return isSetName();
32448 }
32449 throw new IllegalStateException();
32450 }
32451
32452 @Override
32453 public boolean equals(Object that) {
32454 if (that == null)
32455 return false;
32456 if (that instanceof getNamedQuery_args)
32457 return this.equals((getNamedQuery_args)that);
32458 return false;
32459 }
32460
32461 public boolean equals(getNamedQuery_args that) {
32462 if (that == null)
32463 return false;
32464
32465 boolean this_present_projectName = true && this.isSetProjectName();
32466 boolean that_present_projectName = true && that.isSetProjectName();
32467 if (this_present_projectName || that_present_projectName) {
32468 if (!(this_present_projectName && that_present_projectName))
32469 return false;
32470 if (!this.projectName.equals(that.projectName))
32471 return false;
32472 }
32473
32474 boolean this_present_name = true && this.isSetName();
32475 boolean that_present_name = true && that.isSetName();
32476 if (this_present_name || that_present_name) {
32477 if (!(this_present_name && that_present_name))
32478 return false;
32479 if (!this.name.equals(that.name))
32480 return false;
32481 }
32482
32483 return true;
32484 }
32485
32486 @Override
32487 public int hashCode() {
32488 List<Object> list = new ArrayList<Object>();
32489
32490 boolean present_projectName = true && (isSetProjectName());
32491 list.add(present_projectName);
32492 if (present_projectName)
32493 list.add(projectName);
32494
32495 boolean present_name = true && (isSetName());
32496 list.add(present_name);
32497 if (present_name)
32498 list.add(name);
32499
32500 return list.hashCode();
32501 }
32502
32503 @Override
32504 public int compareTo(getNamedQuery_args other) {
32505 if (!getClass().equals(other.getClass())) {
32506 return getClass().getName().compareTo(other.getClass().getName());
32507 }
32508
32509 int lastComparison = 0;
32510
32511 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
32512 if (lastComparison != 0) {
32513 return lastComparison;
32514 }
32515 if (isSetProjectName()) {
32516 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
32517 if (lastComparison != 0) {
32518 return lastComparison;
32519 }
32520 }
32521 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
32522 if (lastComparison != 0) {
32523 return lastComparison;
32524 }
32525 if (isSetName()) {
32526 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
32527 if (lastComparison != 0) {
32528 return lastComparison;
32529 }
32530 }
32531 return 0;
32532 }
32533
32534 public _Fields fieldForId(int fieldId) {
32535 return _Fields.findByThriftId(fieldId);
32536 }
32537
32538 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32539 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32540 }
32541
32542 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32543 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32544 }
32545
32546 @Override
32547 public String toString() {
32548 StringBuilder sb = new StringBuilder("getNamedQuery_args(");
32549 boolean first = true;
32550
32551 sb.append("projectName:");
32552 if (this.projectName == null) {
32553 sb.append("null");
32554 } else {
32555 sb.append(this.projectName);
32556 }
32557 first = false;
32558 if (!first) sb.append(", ");
32559 sb.append("name:");
32560 if (this.name == null) {
32561 sb.append("null");
32562 } else {
32563 sb.append(this.name);
32564 }
32565 first = false;
32566 sb.append(")");
32567 return sb.toString();
32568 }
32569
32570 public void validate() throws org.apache.thrift.TException {
32571
32572
32573 }
32574
32575 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32576 try {
32577 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32578 } catch (org.apache.thrift.TException te) {
32579 throw new java.io.IOException(te);
32580 }
32581 }
32582
32583 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32584 try {
32585 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32586 } catch (org.apache.thrift.TException te) {
32587 throw new java.io.IOException(te);
32588 }
32589 }
32590
32591 private static class getNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
32592 public getNamedQuery_argsStandardScheme getScheme() {
32593 return new getNamedQuery_argsStandardScheme();
32594 }
32595 }
32596
32597 private static class getNamedQuery_argsStandardScheme extends StandardScheme<getNamedQuery_args> {
32598
32599 public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_args struct) throws org.apache.thrift.TException {
32600 org.apache.thrift.protocol.TField schemeField;
32601 iprot.readStructBegin();
32602 while (true)
32603 {
32604 schemeField = iprot.readFieldBegin();
32605 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32606 break;
32607 }
32608 switch (schemeField.id) {
32609 case 1:
32610 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
32611 struct.projectName = iprot.readString();
32612 struct.setProjectNameIsSet(true);
32613 } else {
32614 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32615 }
32616 break;
32617 case 2:
32618 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
32619 struct.name = iprot.readString();
32620 struct.setNameIsSet(true);
32621 } else {
32622 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32623 }
32624 break;
32625 default:
32626 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32627 }
32628 iprot.readFieldEnd();
32629 }
32630 iprot.readStructEnd();
32631
32632
32633 struct.validate();
32634 }
32635
32636 public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_args struct) throws org.apache.thrift.TException {
32637 struct.validate();
32638
32639 oprot.writeStructBegin(STRUCT_DESC);
32640 if (struct.projectName != null) {
32641 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
32642 oprot.writeString(struct.projectName);
32643 oprot.writeFieldEnd();
32644 }
32645 if (struct.name != null) {
32646 oprot.writeFieldBegin(NAME_FIELD_DESC);
32647 oprot.writeString(struct.name);
32648 oprot.writeFieldEnd();
32649 }
32650 oprot.writeFieldStop();
32651 oprot.writeStructEnd();
32652 }
32653
32654 }
32655
32656 private static class getNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
32657 public getNamedQuery_argsTupleScheme getScheme() {
32658 return new getNamedQuery_argsTupleScheme();
32659 }
32660 }
32661
32662 private static class getNamedQuery_argsTupleScheme extends TupleScheme<getNamedQuery_args> {
32663
32664 @Override
32665 public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException {
32666 TTupleProtocol oprot = (TTupleProtocol) prot;
32667 BitSet optionals = new BitSet();
32668 if (struct.isSetProjectName()) {
32669 optionals.set(0);
32670 }
32671 if (struct.isSetName()) {
32672 optionals.set(1);
32673 }
32674 oprot.writeBitSet(optionals, 2);
32675 if (struct.isSetProjectName()) {
32676 oprot.writeString(struct.projectName);
32677 }
32678 if (struct.isSetName()) {
32679 oprot.writeString(struct.name);
32680 }
32681 }
32682
32683 @Override
32684 public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException {
32685 TTupleProtocol iprot = (TTupleProtocol) prot;
32686 BitSet incoming = iprot.readBitSet(2);
32687 if (incoming.get(0)) {
32688 struct.projectName = iprot.readString();
32689 struct.setProjectNameIsSet(true);
32690 }
32691 if (incoming.get(1)) {
32692 struct.name = iprot.readString();
32693 struct.setNameIsSet(true);
32694 }
32695 }
32696 }
32697
32698 }
32699
32700 public static class getNamedQuery_result implements org.apache.thrift.TBase<getNamedQuery_result, getNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<getNamedQuery_result> {
32701 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_result");
32702
32703 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
32704 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
32705
32706 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32707 static {
32708 schemes.put(StandardScheme.class, new getNamedQuery_resultStandardSchemeFactory());
32709 schemes.put(TupleScheme.class, new getNamedQuery_resultTupleSchemeFactory());
32710 }
32711
32712 public NamedQuery success;
32713 public CentralDogmaException e;
32714
32715
32716 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32717 SUCCESS((short)0, "success"),
32718 E((short)1, "e");
32719
32720 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32721
32722 static {
32723 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32724 byName.put(field.getFieldName(), field);
32725 }
32726 }
32727
32728
32729
32730
32731 public static _Fields findByThriftId(int fieldId) {
32732 switch(fieldId) {
32733 case 0:
32734 return SUCCESS;
32735 case 1:
32736 return E;
32737 default:
32738 return null;
32739 }
32740 }
32741
32742
32743
32744
32745
32746 public static _Fields findByThriftIdOrThrow(int fieldId) {
32747 _Fields fields = findByThriftId(fieldId);
32748 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32749 return fields;
32750 }
32751
32752
32753
32754
32755 public static _Fields findByName(String name) {
32756 return byName.get(name);
32757 }
32758
32759 private final short _thriftId;
32760 private final String _fieldName;
32761
32762 _Fields(short thriftId, String fieldName) {
32763 _thriftId = thriftId;
32764 _fieldName = fieldName;
32765 }
32766
32767 public short getThriftFieldId() {
32768 return _thriftId;
32769 }
32770
32771 public String getFieldName() {
32772 return _fieldName;
32773 }
32774 }
32775
32776
32777 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32778 static {
32779 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32780 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
32781 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class)));
32782 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
32783 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32784 metaDataMap = Collections.unmodifiableMap(tmpMap);
32785 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamedQuery_result.class, metaDataMap);
32786 }
32787
32788 public getNamedQuery_result() {
32789 }
32790
32791 public getNamedQuery_result(
32792 NamedQuery success,
32793 CentralDogmaException e)
32794 {
32795 this();
32796 this.success = success;
32797 this.e = e;
32798 }
32799
32800
32801
32802
32803 public getNamedQuery_result(getNamedQuery_result other) {
32804 if (other.isSetSuccess()) {
32805 this.success = new NamedQuery(other.success);
32806 }
32807 if (other.isSetE()) {
32808 this.e = new CentralDogmaException(other.e);
32809 }
32810 }
32811
32812 public getNamedQuery_result deepCopy() {
32813 return new getNamedQuery_result(this);
32814 }
32815
32816 @Override
32817 public void clear() {
32818 this.success = null;
32819 this.e = null;
32820 }
32821
32822 public NamedQuery getSuccess() {
32823 return this.success;
32824 }
32825
32826 public getNamedQuery_result setSuccess(NamedQuery success) {
32827 this.success = success;
32828 return this;
32829 }
32830
32831 public void unsetSuccess() {
32832 this.success = null;
32833 }
32834
32835
32836 public boolean isSetSuccess() {
32837 return this.success != null;
32838 }
32839
32840 public void setSuccessIsSet(boolean value) {
32841 if (!value) {
32842 this.success = null;
32843 }
32844 }
32845
32846 public CentralDogmaException getE() {
32847 return this.e;
32848 }
32849
32850 public getNamedQuery_result setE(CentralDogmaException e) {
32851 this.e = e;
32852 return this;
32853 }
32854
32855 public void unsetE() {
32856 this.e = null;
32857 }
32858
32859
32860 public boolean isSetE() {
32861 return this.e != null;
32862 }
32863
32864 public void setEIsSet(boolean value) {
32865 if (!value) {
32866 this.e = null;
32867 }
32868 }
32869
32870 public void setFieldValue(_Fields field, Object value) {
32871 switch (field) {
32872 case SUCCESS:
32873 if (value == null) {
32874 unsetSuccess();
32875 } else {
32876 setSuccess((NamedQuery)value);
32877 }
32878 break;
32879
32880 case E:
32881 if (value == null) {
32882 unsetE();
32883 } else {
32884 setE((CentralDogmaException)value);
32885 }
32886 break;
32887
32888 }
32889 }
32890
32891 public Object getFieldValue(_Fields field) {
32892 switch (field) {
32893 case SUCCESS:
32894 return getSuccess();
32895
32896 case E:
32897 return getE();
32898
32899 }
32900 throw new IllegalStateException();
32901 }
32902
32903
32904 public boolean isSet(_Fields field) {
32905 if (field == null) {
32906 throw new IllegalArgumentException();
32907 }
32908
32909 switch (field) {
32910 case SUCCESS:
32911 return isSetSuccess();
32912 case E:
32913 return isSetE();
32914 }
32915 throw new IllegalStateException();
32916 }
32917
32918 @Override
32919 public boolean equals(Object that) {
32920 if (that == null)
32921 return false;
32922 if (that instanceof getNamedQuery_result)
32923 return this.equals((getNamedQuery_result)that);
32924 return false;
32925 }
32926
32927 public boolean equals(getNamedQuery_result that) {
32928 if (that == null)
32929 return false;
32930
32931 boolean this_present_success = true && this.isSetSuccess();
32932 boolean that_present_success = true && that.isSetSuccess();
32933 if (this_present_success || that_present_success) {
32934 if (!(this_present_success && that_present_success))
32935 return false;
32936 if (!this.success.equals(that.success))
32937 return false;
32938 }
32939
32940 boolean this_present_e = true && this.isSetE();
32941 boolean that_present_e = true && that.isSetE();
32942 if (this_present_e || that_present_e) {
32943 if (!(this_present_e && that_present_e))
32944 return false;
32945 if (!this.e.equals(that.e))
32946 return false;
32947 }
32948
32949 return true;
32950 }
32951
32952 @Override
32953 public int hashCode() {
32954 List<Object> list = new ArrayList<Object>();
32955
32956 boolean present_success = true && (isSetSuccess());
32957 list.add(present_success);
32958 if (present_success)
32959 list.add(success);
32960
32961 boolean present_e = true && (isSetE());
32962 list.add(present_e);
32963 if (present_e)
32964 list.add(e);
32965
32966 return list.hashCode();
32967 }
32968
32969 @Override
32970 public int compareTo(getNamedQuery_result other) {
32971 if (!getClass().equals(other.getClass())) {
32972 return getClass().getName().compareTo(other.getClass().getName());
32973 }
32974
32975 int lastComparison = 0;
32976
32977 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
32978 if (lastComparison != 0) {
32979 return lastComparison;
32980 }
32981 if (isSetSuccess()) {
32982 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
32983 if (lastComparison != 0) {
32984 return lastComparison;
32985 }
32986 }
32987 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
32988 if (lastComparison != 0) {
32989 return lastComparison;
32990 }
32991 if (isSetE()) {
32992 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
32993 if (lastComparison != 0) {
32994 return lastComparison;
32995 }
32996 }
32997 return 0;
32998 }
32999
33000 public _Fields fieldForId(int fieldId) {
33001 return _Fields.findByThriftId(fieldId);
33002 }
33003
33004 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33005 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33006 }
33007
33008 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33009 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33010 }
33011
33012 @Override
33013 public String toString() {
33014 StringBuilder sb = new StringBuilder("getNamedQuery_result(");
33015 boolean first = true;
33016
33017 sb.append("success:");
33018 if (this.success == null) {
33019 sb.append("null");
33020 } else {
33021 sb.append(this.success);
33022 }
33023 first = false;
33024 if (!first) sb.append(", ");
33025 sb.append("e:");
33026 if (this.e == null) {
33027 sb.append("null");
33028 } else {
33029 sb.append(this.e);
33030 }
33031 first = false;
33032 sb.append(")");
33033 return sb.toString();
33034 }
33035
33036 public void validate() throws org.apache.thrift.TException {
33037
33038
33039 if (success != null) {
33040 success.validate();
33041 }
33042 }
33043
33044 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33045 try {
33046 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33047 } catch (org.apache.thrift.TException te) {
33048 throw new java.io.IOException(te);
33049 }
33050 }
33051
33052 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33053 try {
33054 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33055 } catch (org.apache.thrift.TException te) {
33056 throw new java.io.IOException(te);
33057 }
33058 }
33059
33060 private static class getNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
33061 public getNamedQuery_resultStandardScheme getScheme() {
33062 return new getNamedQuery_resultStandardScheme();
33063 }
33064 }
33065
33066 private static class getNamedQuery_resultStandardScheme extends StandardScheme<getNamedQuery_result> {
33067
33068 public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_result struct) throws org.apache.thrift.TException {
33069 org.apache.thrift.protocol.TField schemeField;
33070 iprot.readStructBegin();
33071 while (true)
33072 {
33073 schemeField = iprot.readFieldBegin();
33074 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33075 break;
33076 }
33077 switch (schemeField.id) {
33078 case 0:
33079 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33080 struct.success = new NamedQuery();
33081 struct.success.read(iprot);
33082 struct.setSuccessIsSet(true);
33083 } else {
33084 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33085 }
33086 break;
33087 case 1:
33088 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33089 struct.e = new CentralDogmaException();
33090 struct.e.read(iprot);
33091 struct.setEIsSet(true);
33092 } else {
33093 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33094 }
33095 break;
33096 default:
33097 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33098 }
33099 iprot.readFieldEnd();
33100 }
33101 iprot.readStructEnd();
33102
33103
33104 struct.validate();
33105 }
33106
33107 public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_result struct) throws org.apache.thrift.TException {
33108 struct.validate();
33109
33110 oprot.writeStructBegin(STRUCT_DESC);
33111 if (struct.success != null) {
33112 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33113 struct.success.write(oprot);
33114 oprot.writeFieldEnd();
33115 }
33116 if (struct.e != null) {
33117 oprot.writeFieldBegin(E_FIELD_DESC);
33118 struct.e.write(oprot);
33119 oprot.writeFieldEnd();
33120 }
33121 oprot.writeFieldStop();
33122 oprot.writeStructEnd();
33123 }
33124
33125 }
33126
33127 private static class getNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
33128 public getNamedQuery_resultTupleScheme getScheme() {
33129 return new getNamedQuery_resultTupleScheme();
33130 }
33131 }
33132
33133 private static class getNamedQuery_resultTupleScheme extends TupleScheme<getNamedQuery_result> {
33134
33135 @Override
33136 public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException {
33137 TTupleProtocol oprot = (TTupleProtocol) prot;
33138 BitSet optionals = new BitSet();
33139 if (struct.isSetSuccess()) {
33140 optionals.set(0);
33141 }
33142 if (struct.isSetE()) {
33143 optionals.set(1);
33144 }
33145 oprot.writeBitSet(optionals, 2);
33146 if (struct.isSetSuccess()) {
33147 struct.success.write(oprot);
33148 }
33149 if (struct.isSetE()) {
33150 struct.e.write(oprot);
33151 }
33152 }
33153
33154 @Override
33155 public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException {
33156 TTupleProtocol iprot = (TTupleProtocol) prot;
33157 BitSet incoming = iprot.readBitSet(2);
33158 if (incoming.get(0)) {
33159 struct.success = new NamedQuery();
33160 struct.success.read(iprot);
33161 struct.setSuccessIsSet(true);
33162 }
33163 if (incoming.get(1)) {
33164 struct.e = new CentralDogmaException();
33165 struct.e.read(iprot);
33166 struct.setEIsSet(true);
33167 }
33168 }
33169 }
33170
33171 }
33172
33173 public static class saveNamedQuery_args implements org.apache.thrift.TBase<saveNamedQuery_args, saveNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveNamedQuery_args> {
33174 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_args");
33175
33176 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
33177 private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRUCT, (short)2);
33178
33179 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33180 static {
33181 schemes.put(StandardScheme.class, new saveNamedQuery_argsStandardSchemeFactory());
33182 schemes.put(TupleScheme.class, new saveNamedQuery_argsTupleSchemeFactory());
33183 }
33184
33185 public String projectName;
33186 public NamedQuery namedQuery;
33187
33188
33189 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33190 PROJECT_NAME((short)1, "projectName"),
33191 NAMED_QUERY((short)2, "namedQuery");
33192
33193 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33194
33195 static {
33196 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33197 byName.put(field.getFieldName(), field);
33198 }
33199 }
33200
33201
33202
33203
33204 public static _Fields findByThriftId(int fieldId) {
33205 switch(fieldId) {
33206 case 1:
33207 return PROJECT_NAME;
33208 case 2:
33209 return NAMED_QUERY;
33210 default:
33211 return null;
33212 }
33213 }
33214
33215
33216
33217
33218
33219 public static _Fields findByThriftIdOrThrow(int fieldId) {
33220 _Fields fields = findByThriftId(fieldId);
33221 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33222 return fields;
33223 }
33224
33225
33226
33227
33228 public static _Fields findByName(String name) {
33229 return byName.get(name);
33230 }
33231
33232 private final short _thriftId;
33233 private final String _fieldName;
33234
33235 _Fields(short thriftId, String fieldName) {
33236 _thriftId = thriftId;
33237 _fieldName = fieldName;
33238 }
33239
33240 public short getThriftFieldId() {
33241 return _thriftId;
33242 }
33243
33244 public String getFieldName() {
33245 return _fieldName;
33246 }
33247 }
33248
33249
33250 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33251 static {
33252 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33253 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
33254 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
33255 tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
33256 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class)));
33257 metaDataMap = Collections.unmodifiableMap(tmpMap);
33258 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveNamedQuery_args.class, metaDataMap);
33259 }
33260
33261 public saveNamedQuery_args() {
33262 }
33263
33264 public saveNamedQuery_args(
33265 String projectName,
33266 NamedQuery namedQuery)
33267 {
33268 this();
33269 this.projectName = projectName;
33270 this.namedQuery = namedQuery;
33271 }
33272
33273
33274
33275
33276 public saveNamedQuery_args(saveNamedQuery_args other) {
33277 if (other.isSetProjectName()) {
33278 this.projectName = other.projectName;
33279 }
33280 if (other.isSetNamedQuery()) {
33281 this.namedQuery = new NamedQuery(other.namedQuery);
33282 }
33283 }
33284
33285 public saveNamedQuery_args deepCopy() {
33286 return new saveNamedQuery_args(this);
33287 }
33288
33289 @Override
33290 public void clear() {
33291 this.projectName = null;
33292 this.namedQuery = null;
33293 }
33294
33295 public String getProjectName() {
33296 return this.projectName;
33297 }
33298
33299 public saveNamedQuery_args setProjectName(String projectName) {
33300 this.projectName = projectName;
33301 return this;
33302 }
33303
33304 public void unsetProjectName() {
33305 this.projectName = null;
33306 }
33307
33308
33309 public boolean isSetProjectName() {
33310 return this.projectName != null;
33311 }
33312
33313 public void setProjectNameIsSet(boolean value) {
33314 if (!value) {
33315 this.projectName = null;
33316 }
33317 }
33318
33319 public NamedQuery getNamedQuery() {
33320 return this.namedQuery;
33321 }
33322
33323 public saveNamedQuery_args setNamedQuery(NamedQuery namedQuery) {
33324 this.namedQuery = namedQuery;
33325 return this;
33326 }
33327
33328 public void unsetNamedQuery() {
33329 this.namedQuery = null;
33330 }
33331
33332
33333 public boolean isSetNamedQuery() {
33334 return this.namedQuery != null;
33335 }
33336
33337 public void setNamedQueryIsSet(boolean value) {
33338 if (!value) {
33339 this.namedQuery = null;
33340 }
33341 }
33342
33343 public void setFieldValue(_Fields field, Object value) {
33344 switch (field) {
33345 case PROJECT_NAME:
33346 if (value == null) {
33347 unsetProjectName();
33348 } else {
33349 setProjectName((String)value);
33350 }
33351 break;
33352
33353 case NAMED_QUERY:
33354 if (value == null) {
33355 unsetNamedQuery();
33356 } else {
33357 setNamedQuery((NamedQuery)value);
33358 }
33359 break;
33360
33361 }
33362 }
33363
33364 public Object getFieldValue(_Fields field) {
33365 switch (field) {
33366 case PROJECT_NAME:
33367 return getProjectName();
33368
33369 case NAMED_QUERY:
33370 return getNamedQuery();
33371
33372 }
33373 throw new IllegalStateException();
33374 }
33375
33376
33377 public boolean isSet(_Fields field) {
33378 if (field == null) {
33379 throw new IllegalArgumentException();
33380 }
33381
33382 switch (field) {
33383 case PROJECT_NAME:
33384 return isSetProjectName();
33385 case NAMED_QUERY:
33386 return isSetNamedQuery();
33387 }
33388 throw new IllegalStateException();
33389 }
33390
33391 @Override
33392 public boolean equals(Object that) {
33393 if (that == null)
33394 return false;
33395 if (that instanceof saveNamedQuery_args)
33396 return this.equals((saveNamedQuery_args)that);
33397 return false;
33398 }
33399
33400 public boolean equals(saveNamedQuery_args that) {
33401 if (that == null)
33402 return false;
33403
33404 boolean this_present_projectName = true && this.isSetProjectName();
33405 boolean that_present_projectName = true && that.isSetProjectName();
33406 if (this_present_projectName || that_present_projectName) {
33407 if (!(this_present_projectName && that_present_projectName))
33408 return false;
33409 if (!this.projectName.equals(that.projectName))
33410 return false;
33411 }
33412
33413 boolean this_present_namedQuery = true && this.isSetNamedQuery();
33414 boolean that_present_namedQuery = true && that.isSetNamedQuery();
33415 if (this_present_namedQuery || that_present_namedQuery) {
33416 if (!(this_present_namedQuery && that_present_namedQuery))
33417 return false;
33418 if (!this.namedQuery.equals(that.namedQuery))
33419 return false;
33420 }
33421
33422 return true;
33423 }
33424
33425 @Override
33426 public int hashCode() {
33427 List<Object> list = new ArrayList<Object>();
33428
33429 boolean present_projectName = true && (isSetProjectName());
33430 list.add(present_projectName);
33431 if (present_projectName)
33432 list.add(projectName);
33433
33434 boolean present_namedQuery = true && (isSetNamedQuery());
33435 list.add(present_namedQuery);
33436 if (present_namedQuery)
33437 list.add(namedQuery);
33438
33439 return list.hashCode();
33440 }
33441
33442 @Override
33443 public int compareTo(saveNamedQuery_args other) {
33444 if (!getClass().equals(other.getClass())) {
33445 return getClass().getName().compareTo(other.getClass().getName());
33446 }
33447
33448 int lastComparison = 0;
33449
33450 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
33451 if (lastComparison != 0) {
33452 return lastComparison;
33453 }
33454 if (isSetProjectName()) {
33455 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
33456 if (lastComparison != 0) {
33457 return lastComparison;
33458 }
33459 }
33460 lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery());
33461 if (lastComparison != 0) {
33462 return lastComparison;
33463 }
33464 if (isSetNamedQuery()) {
33465 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery);
33466 if (lastComparison != 0) {
33467 return lastComparison;
33468 }
33469 }
33470 return 0;
33471 }
33472
33473 public _Fields fieldForId(int fieldId) {
33474 return _Fields.findByThriftId(fieldId);
33475 }
33476
33477 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33478 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33479 }
33480
33481 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33482 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33483 }
33484
33485 @Override
33486 public String toString() {
33487 StringBuilder sb = new StringBuilder("saveNamedQuery_args(");
33488 boolean first = true;
33489
33490 sb.append("projectName:");
33491 if (this.projectName == null) {
33492 sb.append("null");
33493 } else {
33494 sb.append(this.projectName);
33495 }
33496 first = false;
33497 if (!first) sb.append(", ");
33498 sb.append("namedQuery:");
33499 if (this.namedQuery == null) {
33500 sb.append("null");
33501 } else {
33502 sb.append(this.namedQuery);
33503 }
33504 first = false;
33505 sb.append(")");
33506 return sb.toString();
33507 }
33508
33509 public void validate() throws org.apache.thrift.TException {
33510
33511
33512 if (namedQuery != null) {
33513 namedQuery.validate();
33514 }
33515 }
33516
33517 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33518 try {
33519 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33520 } catch (org.apache.thrift.TException te) {
33521 throw new java.io.IOException(te);
33522 }
33523 }
33524
33525 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33526 try {
33527 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33528 } catch (org.apache.thrift.TException te) {
33529 throw new java.io.IOException(te);
33530 }
33531 }
33532
33533 private static class saveNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
33534 public saveNamedQuery_argsStandardScheme getScheme() {
33535 return new saveNamedQuery_argsStandardScheme();
33536 }
33537 }
33538
33539 private static class saveNamedQuery_argsStandardScheme extends StandardScheme<saveNamedQuery_args> {
33540
33541 public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
33542 org.apache.thrift.protocol.TField schemeField;
33543 iprot.readStructBegin();
33544 while (true)
33545 {
33546 schemeField = iprot.readFieldBegin();
33547 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33548 break;
33549 }
33550 switch (schemeField.id) {
33551 case 1:
33552 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
33553 struct.projectName = iprot.readString();
33554 struct.setProjectNameIsSet(true);
33555 } else {
33556 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33557 }
33558 break;
33559 case 2:
33560 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33561 struct.namedQuery = new NamedQuery();
33562 struct.namedQuery.read(iprot);
33563 struct.setNamedQueryIsSet(true);
33564 } else {
33565 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33566 }
33567 break;
33568 default:
33569 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33570 }
33571 iprot.readFieldEnd();
33572 }
33573 iprot.readStructEnd();
33574
33575
33576 struct.validate();
33577 }
33578
33579 public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
33580 struct.validate();
33581
33582 oprot.writeStructBegin(STRUCT_DESC);
33583 if (struct.projectName != null) {
33584 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
33585 oprot.writeString(struct.projectName);
33586 oprot.writeFieldEnd();
33587 }
33588 if (struct.namedQuery != null) {
33589 oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC);
33590 struct.namedQuery.write(oprot);
33591 oprot.writeFieldEnd();
33592 }
33593 oprot.writeFieldStop();
33594 oprot.writeStructEnd();
33595 }
33596
33597 }
33598
33599 private static class saveNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
33600 public saveNamedQuery_argsTupleScheme getScheme() {
33601 return new saveNamedQuery_argsTupleScheme();
33602 }
33603 }
33604
33605 private static class saveNamedQuery_argsTupleScheme extends TupleScheme<saveNamedQuery_args> {
33606
33607 @Override
33608 public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
33609 TTupleProtocol oprot = (TTupleProtocol) prot;
33610 BitSet optionals = new BitSet();
33611 if (struct.isSetProjectName()) {
33612 optionals.set(0);
33613 }
33614 if (struct.isSetNamedQuery()) {
33615 optionals.set(1);
33616 }
33617 oprot.writeBitSet(optionals, 2);
33618 if (struct.isSetProjectName()) {
33619 oprot.writeString(struct.projectName);
33620 }
33621 if (struct.isSetNamedQuery()) {
33622 struct.namedQuery.write(oprot);
33623 }
33624 }
33625
33626 @Override
33627 public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException {
33628 TTupleProtocol iprot = (TTupleProtocol) prot;
33629 BitSet incoming = iprot.readBitSet(2);
33630 if (incoming.get(0)) {
33631 struct.projectName = iprot.readString();
33632 struct.setProjectNameIsSet(true);
33633 }
33634 if (incoming.get(1)) {
33635 struct.namedQuery = new NamedQuery();
33636 struct.namedQuery.read(iprot);
33637 struct.setNamedQueryIsSet(true);
33638 }
33639 }
33640 }
33641
33642 }
33643
33644 public static class saveNamedQuery_result implements org.apache.thrift.TBase<saveNamedQuery_result, saveNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveNamedQuery_result> {
33645 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_result");
33646
33647 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33648
33649 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33650 static {
33651 schemes.put(StandardScheme.class, new saveNamedQuery_resultStandardSchemeFactory());
33652 schemes.put(TupleScheme.class, new saveNamedQuery_resultTupleSchemeFactory());
33653 }
33654
33655 public CentralDogmaException e;
33656
33657
33658 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33659 E((short)1, "e");
33660
33661 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33662
33663 static {
33664 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33665 byName.put(field.getFieldName(), field);
33666 }
33667 }
33668
33669
33670
33671
33672 public static _Fields findByThriftId(int fieldId) {
33673 switch(fieldId) {
33674 case 1:
33675 return E;
33676 default:
33677 return null;
33678 }
33679 }
33680
33681
33682
33683
33684
33685 public static _Fields findByThriftIdOrThrow(int fieldId) {
33686 _Fields fields = findByThriftId(fieldId);
33687 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33688 return fields;
33689 }
33690
33691
33692
33693
33694 public static _Fields findByName(String name) {
33695 return byName.get(name);
33696 }
33697
33698 private final short _thriftId;
33699 private final String _fieldName;
33700
33701 _Fields(short thriftId, String fieldName) {
33702 _thriftId = thriftId;
33703 _fieldName = fieldName;
33704 }
33705
33706 public short getThriftFieldId() {
33707 return _thriftId;
33708 }
33709
33710 public String getFieldName() {
33711 return _fieldName;
33712 }
33713 }
33714
33715
33716 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33717 static {
33718 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33719 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
33720 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33721 metaDataMap = Collections.unmodifiableMap(tmpMap);
33722 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveNamedQuery_result.class, metaDataMap);
33723 }
33724
33725 public saveNamedQuery_result() {
33726 }
33727
33728 public saveNamedQuery_result(
33729 CentralDogmaException e)
33730 {
33731 this();
33732 this.e = e;
33733 }
33734
33735
33736
33737
33738 public saveNamedQuery_result(saveNamedQuery_result other) {
33739 if (other.isSetE()) {
33740 this.e = new CentralDogmaException(other.e);
33741 }
33742 }
33743
33744 public saveNamedQuery_result deepCopy() {
33745 return new saveNamedQuery_result(this);
33746 }
33747
33748 @Override
33749 public void clear() {
33750 this.e = null;
33751 }
33752
33753 public CentralDogmaException getE() {
33754 return this.e;
33755 }
33756
33757 public saveNamedQuery_result setE(CentralDogmaException e) {
33758 this.e = e;
33759 return this;
33760 }
33761
33762 public void unsetE() {
33763 this.e = null;
33764 }
33765
33766
33767 public boolean isSetE() {
33768 return this.e != null;
33769 }
33770
33771 public void setEIsSet(boolean value) {
33772 if (!value) {
33773 this.e = null;
33774 }
33775 }
33776
33777 public void setFieldValue(_Fields field, Object value) {
33778 switch (field) {
33779 case E:
33780 if (value == null) {
33781 unsetE();
33782 } else {
33783 setE((CentralDogmaException)value);
33784 }
33785 break;
33786
33787 }
33788 }
33789
33790 public Object getFieldValue(_Fields field) {
33791 switch (field) {
33792 case E:
33793 return getE();
33794
33795 }
33796 throw new IllegalStateException();
33797 }
33798
33799
33800 public boolean isSet(_Fields field) {
33801 if (field == null) {
33802 throw new IllegalArgumentException();
33803 }
33804
33805 switch (field) {
33806 case E:
33807 return isSetE();
33808 }
33809 throw new IllegalStateException();
33810 }
33811
33812 @Override
33813 public boolean equals(Object that) {
33814 if (that == null)
33815 return false;
33816 if (that instanceof saveNamedQuery_result)
33817 return this.equals((saveNamedQuery_result)that);
33818 return false;
33819 }
33820
33821 public boolean equals(saveNamedQuery_result that) {
33822 if (that == null)
33823 return false;
33824
33825 boolean this_present_e = true && this.isSetE();
33826 boolean that_present_e = true && that.isSetE();
33827 if (this_present_e || that_present_e) {
33828 if (!(this_present_e && that_present_e))
33829 return false;
33830 if (!this.e.equals(that.e))
33831 return false;
33832 }
33833
33834 return true;
33835 }
33836
33837 @Override
33838 public int hashCode() {
33839 List<Object> list = new ArrayList<Object>();
33840
33841 boolean present_e = true && (isSetE());
33842 list.add(present_e);
33843 if (present_e)
33844 list.add(e);
33845
33846 return list.hashCode();
33847 }
33848
33849 @Override
33850 public int compareTo(saveNamedQuery_result other) {
33851 if (!getClass().equals(other.getClass())) {
33852 return getClass().getName().compareTo(other.getClass().getName());
33853 }
33854
33855 int lastComparison = 0;
33856
33857 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
33858 if (lastComparison != 0) {
33859 return lastComparison;
33860 }
33861 if (isSetE()) {
33862 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
33863 if (lastComparison != 0) {
33864 return lastComparison;
33865 }
33866 }
33867 return 0;
33868 }
33869
33870 public _Fields fieldForId(int fieldId) {
33871 return _Fields.findByThriftId(fieldId);
33872 }
33873
33874 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33875 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33876 }
33877
33878 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33879 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33880 }
33881
33882 @Override
33883 public String toString() {
33884 StringBuilder sb = new StringBuilder("saveNamedQuery_result(");
33885 boolean first = true;
33886
33887 sb.append("e:");
33888 if (this.e == null) {
33889 sb.append("null");
33890 } else {
33891 sb.append(this.e);
33892 }
33893 first = false;
33894 sb.append(")");
33895 return sb.toString();
33896 }
33897
33898 public void validate() throws org.apache.thrift.TException {
33899
33900
33901 }
33902
33903 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33904 try {
33905 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33906 } catch (org.apache.thrift.TException te) {
33907 throw new java.io.IOException(te);
33908 }
33909 }
33910
33911 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33912 try {
33913 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33914 } catch (org.apache.thrift.TException te) {
33915 throw new java.io.IOException(te);
33916 }
33917 }
33918
33919 private static class saveNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
33920 public saveNamedQuery_resultStandardScheme getScheme() {
33921 return new saveNamedQuery_resultStandardScheme();
33922 }
33923 }
33924
33925 private static class saveNamedQuery_resultStandardScheme extends StandardScheme<saveNamedQuery_result> {
33926
33927 public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
33928 org.apache.thrift.protocol.TField schemeField;
33929 iprot.readStructBegin();
33930 while (true)
33931 {
33932 schemeField = iprot.readFieldBegin();
33933 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33934 break;
33935 }
33936 switch (schemeField.id) {
33937 case 1:
33938 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33939 struct.e = new CentralDogmaException();
33940 struct.e.read(iprot);
33941 struct.setEIsSet(true);
33942 } else {
33943 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33944 }
33945 break;
33946 default:
33947 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33948 }
33949 iprot.readFieldEnd();
33950 }
33951 iprot.readStructEnd();
33952
33953
33954 struct.validate();
33955 }
33956
33957 public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
33958 struct.validate();
33959
33960 oprot.writeStructBegin(STRUCT_DESC);
33961 if (struct.e != null) {
33962 oprot.writeFieldBegin(E_FIELD_DESC);
33963 struct.e.write(oprot);
33964 oprot.writeFieldEnd();
33965 }
33966 oprot.writeFieldStop();
33967 oprot.writeStructEnd();
33968 }
33969
33970 }
33971
33972 private static class saveNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
33973 public saveNamedQuery_resultTupleScheme getScheme() {
33974 return new saveNamedQuery_resultTupleScheme();
33975 }
33976 }
33977
33978 private static class saveNamedQuery_resultTupleScheme extends TupleScheme<saveNamedQuery_result> {
33979
33980 @Override
33981 public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
33982 TTupleProtocol oprot = (TTupleProtocol) prot;
33983 BitSet optionals = new BitSet();
33984 if (struct.isSetE()) {
33985 optionals.set(0);
33986 }
33987 oprot.writeBitSet(optionals, 1);
33988 if (struct.isSetE()) {
33989 struct.e.write(oprot);
33990 }
33991 }
33992
33993 @Override
33994 public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException {
33995 TTupleProtocol iprot = (TTupleProtocol) prot;
33996 BitSet incoming = iprot.readBitSet(1);
33997 if (incoming.get(0)) {
33998 struct.e = new CentralDogmaException();
33999 struct.e.read(iprot);
34000 struct.setEIsSet(true);
34001 }
34002 }
34003 }
34004
34005 }
34006
34007 public static class removeNamedQuery_args implements org.apache.thrift.TBase<removeNamedQuery_args, removeNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeNamedQuery_args> {
34008 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_args");
34009
34010 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
34011 private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
34012
34013 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34014 static {
34015 schemes.put(StandardScheme.class, new removeNamedQuery_argsStandardSchemeFactory());
34016 schemes.put(TupleScheme.class, new removeNamedQuery_argsTupleSchemeFactory());
34017 }
34018
34019 public String projectName;
34020 public String name;
34021
34022
34023 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34024 PROJECT_NAME((short)1, "projectName"),
34025 NAME((short)2, "name");
34026
34027 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34028
34029 static {
34030 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34031 byName.put(field.getFieldName(), field);
34032 }
34033 }
34034
34035
34036
34037
34038 public static _Fields findByThriftId(int fieldId) {
34039 switch(fieldId) {
34040 case 1:
34041 return PROJECT_NAME;
34042 case 2:
34043 return NAME;
34044 default:
34045 return null;
34046 }
34047 }
34048
34049
34050
34051
34052
34053 public static _Fields findByThriftIdOrThrow(int fieldId) {
34054 _Fields fields = findByThriftId(fieldId);
34055 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34056 return fields;
34057 }
34058
34059
34060
34061
34062 public static _Fields findByName(String name) {
34063 return byName.get(name);
34064 }
34065
34066 private final short _thriftId;
34067 private final String _fieldName;
34068
34069 _Fields(short thriftId, String fieldName) {
34070 _thriftId = thriftId;
34071 _fieldName = fieldName;
34072 }
34073
34074 public short getThriftFieldId() {
34075 return _thriftId;
34076 }
34077
34078 public String getFieldName() {
34079 return _fieldName;
34080 }
34081 }
34082
34083
34084 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34085 static {
34086 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34087 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
34088 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34089 tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
34090 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34091 metaDataMap = Collections.unmodifiableMap(tmpMap);
34092 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamedQuery_args.class, metaDataMap);
34093 }
34094
34095 public removeNamedQuery_args() {
34096 }
34097
34098 public removeNamedQuery_args(
34099 String projectName,
34100 String name)
34101 {
34102 this();
34103 this.projectName = projectName;
34104 this.name = name;
34105 }
34106
34107
34108
34109
34110 public removeNamedQuery_args(removeNamedQuery_args other) {
34111 if (other.isSetProjectName()) {
34112 this.projectName = other.projectName;
34113 }
34114 if (other.isSetName()) {
34115 this.name = other.name;
34116 }
34117 }
34118
34119 public removeNamedQuery_args deepCopy() {
34120 return new removeNamedQuery_args(this);
34121 }
34122
34123 @Override
34124 public void clear() {
34125 this.projectName = null;
34126 this.name = null;
34127 }
34128
34129 public String getProjectName() {
34130 return this.projectName;
34131 }
34132
34133 public removeNamedQuery_args setProjectName(String projectName) {
34134 this.projectName = projectName;
34135 return this;
34136 }
34137
34138 public void unsetProjectName() {
34139 this.projectName = null;
34140 }
34141
34142
34143 public boolean isSetProjectName() {
34144 return this.projectName != null;
34145 }
34146
34147 public void setProjectNameIsSet(boolean value) {
34148 if (!value) {
34149 this.projectName = null;
34150 }
34151 }
34152
34153 public String getName() {
34154 return this.name;
34155 }
34156
34157 public removeNamedQuery_args setName(String name) {
34158 this.name = name;
34159 return this;
34160 }
34161
34162 public void unsetName() {
34163 this.name = null;
34164 }
34165
34166
34167 public boolean isSetName() {
34168 return this.name != null;
34169 }
34170
34171 public void setNameIsSet(boolean value) {
34172 if (!value) {
34173 this.name = null;
34174 }
34175 }
34176
34177 public void setFieldValue(_Fields field, Object value) {
34178 switch (field) {
34179 case PROJECT_NAME:
34180 if (value == null) {
34181 unsetProjectName();
34182 } else {
34183 setProjectName((String)value);
34184 }
34185 break;
34186
34187 case NAME:
34188 if (value == null) {
34189 unsetName();
34190 } else {
34191 setName((String)value);
34192 }
34193 break;
34194
34195 }
34196 }
34197
34198 public Object getFieldValue(_Fields field) {
34199 switch (field) {
34200 case PROJECT_NAME:
34201 return getProjectName();
34202
34203 case NAME:
34204 return getName();
34205
34206 }
34207 throw new IllegalStateException();
34208 }
34209
34210
34211 public boolean isSet(_Fields field) {
34212 if (field == null) {
34213 throw new IllegalArgumentException();
34214 }
34215
34216 switch (field) {
34217 case PROJECT_NAME:
34218 return isSetProjectName();
34219 case NAME:
34220 return isSetName();
34221 }
34222 throw new IllegalStateException();
34223 }
34224
34225 @Override
34226 public boolean equals(Object that) {
34227 if (that == null)
34228 return false;
34229 if (that instanceof removeNamedQuery_args)
34230 return this.equals((removeNamedQuery_args)that);
34231 return false;
34232 }
34233
34234 public boolean equals(removeNamedQuery_args that) {
34235 if (that == null)
34236 return false;
34237
34238 boolean this_present_projectName = true && this.isSetProjectName();
34239 boolean that_present_projectName = true && that.isSetProjectName();
34240 if (this_present_projectName || that_present_projectName) {
34241 if (!(this_present_projectName && that_present_projectName))
34242 return false;
34243 if (!this.projectName.equals(that.projectName))
34244 return false;
34245 }
34246
34247 boolean this_present_name = true && this.isSetName();
34248 boolean that_present_name = true && that.isSetName();
34249 if (this_present_name || that_present_name) {
34250 if (!(this_present_name && that_present_name))
34251 return false;
34252 if (!this.name.equals(that.name))
34253 return false;
34254 }
34255
34256 return true;
34257 }
34258
34259 @Override
34260 public int hashCode() {
34261 List<Object> list = new ArrayList<Object>();
34262
34263 boolean present_projectName = true && (isSetProjectName());
34264 list.add(present_projectName);
34265 if (present_projectName)
34266 list.add(projectName);
34267
34268 boolean present_name = true && (isSetName());
34269 list.add(present_name);
34270 if (present_name)
34271 list.add(name);
34272
34273 return list.hashCode();
34274 }
34275
34276 @Override
34277 public int compareTo(removeNamedQuery_args other) {
34278 if (!getClass().equals(other.getClass())) {
34279 return getClass().getName().compareTo(other.getClass().getName());
34280 }
34281
34282 int lastComparison = 0;
34283
34284 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
34285 if (lastComparison != 0) {
34286 return lastComparison;
34287 }
34288 if (isSetProjectName()) {
34289 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
34290 if (lastComparison != 0) {
34291 return lastComparison;
34292 }
34293 }
34294 lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
34295 if (lastComparison != 0) {
34296 return lastComparison;
34297 }
34298 if (isSetName()) {
34299 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
34300 if (lastComparison != 0) {
34301 return lastComparison;
34302 }
34303 }
34304 return 0;
34305 }
34306
34307 public _Fields fieldForId(int fieldId) {
34308 return _Fields.findByThriftId(fieldId);
34309 }
34310
34311 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34312 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34313 }
34314
34315 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34316 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34317 }
34318
34319 @Override
34320 public String toString() {
34321 StringBuilder sb = new StringBuilder("removeNamedQuery_args(");
34322 boolean first = true;
34323
34324 sb.append("projectName:");
34325 if (this.projectName == null) {
34326 sb.append("null");
34327 } else {
34328 sb.append(this.projectName);
34329 }
34330 first = false;
34331 if (!first) sb.append(", ");
34332 sb.append("name:");
34333 if (this.name == null) {
34334 sb.append("null");
34335 } else {
34336 sb.append(this.name);
34337 }
34338 first = false;
34339 sb.append(")");
34340 return sb.toString();
34341 }
34342
34343 public void validate() throws org.apache.thrift.TException {
34344
34345
34346 }
34347
34348 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34349 try {
34350 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34351 } catch (org.apache.thrift.TException te) {
34352 throw new java.io.IOException(te);
34353 }
34354 }
34355
34356 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34357 try {
34358 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34359 } catch (org.apache.thrift.TException te) {
34360 throw new java.io.IOException(te);
34361 }
34362 }
34363
34364 private static class removeNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
34365 public removeNamedQuery_argsStandardScheme getScheme() {
34366 return new removeNamedQuery_argsStandardScheme();
34367 }
34368 }
34369
34370 private static class removeNamedQuery_argsStandardScheme extends StandardScheme<removeNamedQuery_args> {
34371
34372 public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
34373 org.apache.thrift.protocol.TField schemeField;
34374 iprot.readStructBegin();
34375 while (true)
34376 {
34377 schemeField = iprot.readFieldBegin();
34378 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
34379 break;
34380 }
34381 switch (schemeField.id) {
34382 case 1:
34383 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34384 struct.projectName = iprot.readString();
34385 struct.setProjectNameIsSet(true);
34386 } else {
34387 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34388 }
34389 break;
34390 case 2:
34391 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34392 struct.name = iprot.readString();
34393 struct.setNameIsSet(true);
34394 } else {
34395 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34396 }
34397 break;
34398 default:
34399 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34400 }
34401 iprot.readFieldEnd();
34402 }
34403 iprot.readStructEnd();
34404
34405
34406 struct.validate();
34407 }
34408
34409 public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
34410 struct.validate();
34411
34412 oprot.writeStructBegin(STRUCT_DESC);
34413 if (struct.projectName != null) {
34414 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
34415 oprot.writeString(struct.projectName);
34416 oprot.writeFieldEnd();
34417 }
34418 if (struct.name != null) {
34419 oprot.writeFieldBegin(NAME_FIELD_DESC);
34420 oprot.writeString(struct.name);
34421 oprot.writeFieldEnd();
34422 }
34423 oprot.writeFieldStop();
34424 oprot.writeStructEnd();
34425 }
34426
34427 }
34428
34429 private static class removeNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
34430 public removeNamedQuery_argsTupleScheme getScheme() {
34431 return new removeNamedQuery_argsTupleScheme();
34432 }
34433 }
34434
34435 private static class removeNamedQuery_argsTupleScheme extends TupleScheme<removeNamedQuery_args> {
34436
34437 @Override
34438 public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
34439 TTupleProtocol oprot = (TTupleProtocol) prot;
34440 BitSet optionals = new BitSet();
34441 if (struct.isSetProjectName()) {
34442 optionals.set(0);
34443 }
34444 if (struct.isSetName()) {
34445 optionals.set(1);
34446 }
34447 oprot.writeBitSet(optionals, 2);
34448 if (struct.isSetProjectName()) {
34449 oprot.writeString(struct.projectName);
34450 }
34451 if (struct.isSetName()) {
34452 oprot.writeString(struct.name);
34453 }
34454 }
34455
34456 @Override
34457 public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException {
34458 TTupleProtocol iprot = (TTupleProtocol) prot;
34459 BitSet incoming = iprot.readBitSet(2);
34460 if (incoming.get(0)) {
34461 struct.projectName = iprot.readString();
34462 struct.setProjectNameIsSet(true);
34463 }
34464 if (incoming.get(1)) {
34465 struct.name = iprot.readString();
34466 struct.setNameIsSet(true);
34467 }
34468 }
34469 }
34470
34471 }
34472
34473 public static class removeNamedQuery_result implements org.apache.thrift.TBase<removeNamedQuery_result, removeNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeNamedQuery_result> {
34474 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_result");
34475
34476 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
34477
34478 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34479 static {
34480 schemes.put(StandardScheme.class, new removeNamedQuery_resultStandardSchemeFactory());
34481 schemes.put(TupleScheme.class, new removeNamedQuery_resultTupleSchemeFactory());
34482 }
34483
34484 public CentralDogmaException e;
34485
34486
34487 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34488 E((short)1, "e");
34489
34490 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34491
34492 static {
34493 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34494 byName.put(field.getFieldName(), field);
34495 }
34496 }
34497
34498
34499
34500
34501 public static _Fields findByThriftId(int fieldId) {
34502 switch(fieldId) {
34503 case 1:
34504 return E;
34505 default:
34506 return null;
34507 }
34508 }
34509
34510
34511
34512
34513
34514 public static _Fields findByThriftIdOrThrow(int fieldId) {
34515 _Fields fields = findByThriftId(fieldId);
34516 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34517 return fields;
34518 }
34519
34520
34521
34522
34523 public static _Fields findByName(String name) {
34524 return byName.get(name);
34525 }
34526
34527 private final short _thriftId;
34528 private final String _fieldName;
34529
34530 _Fields(short thriftId, String fieldName) {
34531 _thriftId = thriftId;
34532 _fieldName = fieldName;
34533 }
34534
34535 public short getThriftFieldId() {
34536 return _thriftId;
34537 }
34538
34539 public String getFieldName() {
34540 return _fieldName;
34541 }
34542 }
34543
34544
34545 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34546 static {
34547 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34548 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
34549 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34550 metaDataMap = Collections.unmodifiableMap(tmpMap);
34551 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamedQuery_result.class, metaDataMap);
34552 }
34553
34554 public removeNamedQuery_result() {
34555 }
34556
34557 public removeNamedQuery_result(
34558 CentralDogmaException e)
34559 {
34560 this();
34561 this.e = e;
34562 }
34563
34564
34565
34566
34567 public removeNamedQuery_result(removeNamedQuery_result other) {
34568 if (other.isSetE()) {
34569 this.e = new CentralDogmaException(other.e);
34570 }
34571 }
34572
34573 public removeNamedQuery_result deepCopy() {
34574 return new removeNamedQuery_result(this);
34575 }
34576
34577 @Override
34578 public void clear() {
34579 this.e = null;
34580 }
34581
34582 public CentralDogmaException getE() {
34583 return this.e;
34584 }
34585
34586 public removeNamedQuery_result setE(CentralDogmaException e) {
34587 this.e = e;
34588 return this;
34589 }
34590
34591 public void unsetE() {
34592 this.e = null;
34593 }
34594
34595
34596 public boolean isSetE() {
34597 return this.e != null;
34598 }
34599
34600 public void setEIsSet(boolean value) {
34601 if (!value) {
34602 this.e = null;
34603 }
34604 }
34605
34606 public void setFieldValue(_Fields field, Object value) {
34607 switch (field) {
34608 case E:
34609 if (value == null) {
34610 unsetE();
34611 } else {
34612 setE((CentralDogmaException)value);
34613 }
34614 break;
34615
34616 }
34617 }
34618
34619 public Object getFieldValue(_Fields field) {
34620 switch (field) {
34621 case E:
34622 return getE();
34623
34624 }
34625 throw new IllegalStateException();
34626 }
34627
34628
34629 public boolean isSet(_Fields field) {
34630 if (field == null) {
34631 throw new IllegalArgumentException();
34632 }
34633
34634 switch (field) {
34635 case E:
34636 return isSetE();
34637 }
34638 throw new IllegalStateException();
34639 }
34640
34641 @Override
34642 public boolean equals(Object that) {
34643 if (that == null)
34644 return false;
34645 if (that instanceof removeNamedQuery_result)
34646 return this.equals((removeNamedQuery_result)that);
34647 return false;
34648 }
34649
34650 public boolean equals(removeNamedQuery_result that) {
34651 if (that == null)
34652 return false;
34653
34654 boolean this_present_e = true && this.isSetE();
34655 boolean that_present_e = true && that.isSetE();
34656 if (this_present_e || that_present_e) {
34657 if (!(this_present_e && that_present_e))
34658 return false;
34659 if (!this.e.equals(that.e))
34660 return false;
34661 }
34662
34663 return true;
34664 }
34665
34666 @Override
34667 public int hashCode() {
34668 List<Object> list = new ArrayList<Object>();
34669
34670 boolean present_e = true && (isSetE());
34671 list.add(present_e);
34672 if (present_e)
34673 list.add(e);
34674
34675 return list.hashCode();
34676 }
34677
34678 @Override
34679 public int compareTo(removeNamedQuery_result other) {
34680 if (!getClass().equals(other.getClass())) {
34681 return getClass().getName().compareTo(other.getClass().getName());
34682 }
34683
34684 int lastComparison = 0;
34685
34686 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
34687 if (lastComparison != 0) {
34688 return lastComparison;
34689 }
34690 if (isSetE()) {
34691 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
34692 if (lastComparison != 0) {
34693 return lastComparison;
34694 }
34695 }
34696 return 0;
34697 }
34698
34699 public _Fields fieldForId(int fieldId) {
34700 return _Fields.findByThriftId(fieldId);
34701 }
34702
34703 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34704 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34705 }
34706
34707 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34708 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34709 }
34710
34711 @Override
34712 public String toString() {
34713 StringBuilder sb = new StringBuilder("removeNamedQuery_result(");
34714 boolean first = true;
34715
34716 sb.append("e:");
34717 if (this.e == null) {
34718 sb.append("null");
34719 } else {
34720 sb.append(this.e);
34721 }
34722 first = false;
34723 sb.append(")");
34724 return sb.toString();
34725 }
34726
34727 public void validate() throws org.apache.thrift.TException {
34728
34729
34730 }
34731
34732 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34733 try {
34734 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34735 } catch (org.apache.thrift.TException te) {
34736 throw new java.io.IOException(te);
34737 }
34738 }
34739
34740 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34741 try {
34742 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34743 } catch (org.apache.thrift.TException te) {
34744 throw new java.io.IOException(te);
34745 }
34746 }
34747
34748 private static class removeNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
34749 public removeNamedQuery_resultStandardScheme getScheme() {
34750 return new removeNamedQuery_resultStandardScheme();
34751 }
34752 }
34753
34754 private static class removeNamedQuery_resultStandardScheme extends StandardScheme<removeNamedQuery_result> {
34755
34756 public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
34757 org.apache.thrift.protocol.TField schemeField;
34758 iprot.readStructBegin();
34759 while (true)
34760 {
34761 schemeField = iprot.readFieldBegin();
34762 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
34763 break;
34764 }
34765 switch (schemeField.id) {
34766 case 1:
34767 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
34768 struct.e = new CentralDogmaException();
34769 struct.e.read(iprot);
34770 struct.setEIsSet(true);
34771 } else {
34772 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34773 }
34774 break;
34775 default:
34776 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34777 }
34778 iprot.readFieldEnd();
34779 }
34780 iprot.readStructEnd();
34781
34782
34783 struct.validate();
34784 }
34785
34786 public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
34787 struct.validate();
34788
34789 oprot.writeStructBegin(STRUCT_DESC);
34790 if (struct.e != null) {
34791 oprot.writeFieldBegin(E_FIELD_DESC);
34792 struct.e.write(oprot);
34793 oprot.writeFieldEnd();
34794 }
34795 oprot.writeFieldStop();
34796 oprot.writeStructEnd();
34797 }
34798
34799 }
34800
34801 private static class removeNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
34802 public removeNamedQuery_resultTupleScheme getScheme() {
34803 return new removeNamedQuery_resultTupleScheme();
34804 }
34805 }
34806
34807 private static class removeNamedQuery_resultTupleScheme extends TupleScheme<removeNamedQuery_result> {
34808
34809 @Override
34810 public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
34811 TTupleProtocol oprot = (TTupleProtocol) prot;
34812 BitSet optionals = new BitSet();
34813 if (struct.isSetE()) {
34814 optionals.set(0);
34815 }
34816 oprot.writeBitSet(optionals, 1);
34817 if (struct.isSetE()) {
34818 struct.e.write(oprot);
34819 }
34820 }
34821
34822 @Override
34823 public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException {
34824 TTupleProtocol iprot = (TTupleProtocol) prot;
34825 BitSet incoming = iprot.readBitSet(1);
34826 if (incoming.get(0)) {
34827 struct.e = new CentralDogmaException();
34828 struct.e.read(iprot);
34829 struct.setEIsSet(true);
34830 }
34831 }
34832 }
34833
34834 }
34835
34836 public static class listNamedQueries_args implements org.apache.thrift.TBase<listNamedQueries_args, listNamedQueries_args._Fields>, java.io.Serializable, Cloneable, Comparable<listNamedQueries_args> {
34837 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_args");
34838
34839 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
34840
34841 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34842 static {
34843 schemes.put(StandardScheme.class, new listNamedQueries_argsStandardSchemeFactory());
34844 schemes.put(TupleScheme.class, new listNamedQueries_argsTupleSchemeFactory());
34845 }
34846
34847 public String projectName;
34848
34849
34850 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34851 PROJECT_NAME((short)1, "projectName");
34852
34853 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34854
34855 static {
34856 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34857 byName.put(field.getFieldName(), field);
34858 }
34859 }
34860
34861
34862
34863
34864 public static _Fields findByThriftId(int fieldId) {
34865 switch(fieldId) {
34866 case 1:
34867 return PROJECT_NAME;
34868 default:
34869 return null;
34870 }
34871 }
34872
34873
34874
34875
34876
34877 public static _Fields findByThriftIdOrThrow(int fieldId) {
34878 _Fields fields = findByThriftId(fieldId);
34879 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34880 return fields;
34881 }
34882
34883
34884
34885
34886 public static _Fields findByName(String name) {
34887 return byName.get(name);
34888 }
34889
34890 private final short _thriftId;
34891 private final String _fieldName;
34892
34893 _Fields(short thriftId, String fieldName) {
34894 _thriftId = thriftId;
34895 _fieldName = fieldName;
34896 }
34897
34898 public short getThriftFieldId() {
34899 return _thriftId;
34900 }
34901
34902 public String getFieldName() {
34903 return _fieldName;
34904 }
34905 }
34906
34907
34908 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34909 static {
34910 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34911 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
34912 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34913 metaDataMap = Collections.unmodifiableMap(tmpMap);
34914 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamedQueries_args.class, metaDataMap);
34915 }
34916
34917 public listNamedQueries_args() {
34918 }
34919
34920 public listNamedQueries_args(
34921 String projectName)
34922 {
34923 this();
34924 this.projectName = projectName;
34925 }
34926
34927
34928
34929
34930 public listNamedQueries_args(listNamedQueries_args other) {
34931 if (other.isSetProjectName()) {
34932 this.projectName = other.projectName;
34933 }
34934 }
34935
34936 public listNamedQueries_args deepCopy() {
34937 return new listNamedQueries_args(this);
34938 }
34939
34940 @Override
34941 public void clear() {
34942 this.projectName = null;
34943 }
34944
34945 public String getProjectName() {
34946 return this.projectName;
34947 }
34948
34949 public listNamedQueries_args setProjectName(String projectName) {
34950 this.projectName = projectName;
34951 return this;
34952 }
34953
34954 public void unsetProjectName() {
34955 this.projectName = null;
34956 }
34957
34958
34959 public boolean isSetProjectName() {
34960 return this.projectName != null;
34961 }
34962
34963 public void setProjectNameIsSet(boolean value) {
34964 if (!value) {
34965 this.projectName = null;
34966 }
34967 }
34968
34969 public void setFieldValue(_Fields field, Object value) {
34970 switch (field) {
34971 case PROJECT_NAME:
34972 if (value == null) {
34973 unsetProjectName();
34974 } else {
34975 setProjectName((String)value);
34976 }
34977 break;
34978
34979 }
34980 }
34981
34982 public Object getFieldValue(_Fields field) {
34983 switch (field) {
34984 case PROJECT_NAME:
34985 return getProjectName();
34986
34987 }
34988 throw new IllegalStateException();
34989 }
34990
34991
34992 public boolean isSet(_Fields field) {
34993 if (field == null) {
34994 throw new IllegalArgumentException();
34995 }
34996
34997 switch (field) {
34998 case PROJECT_NAME:
34999 return isSetProjectName();
35000 }
35001 throw new IllegalStateException();
35002 }
35003
35004 @Override
35005 public boolean equals(Object that) {
35006 if (that == null)
35007 return false;
35008 if (that instanceof listNamedQueries_args)
35009 return this.equals((listNamedQueries_args)that);
35010 return false;
35011 }
35012
35013 public boolean equals(listNamedQueries_args that) {
35014 if (that == null)
35015 return false;
35016
35017 boolean this_present_projectName = true && this.isSetProjectName();
35018 boolean that_present_projectName = true && that.isSetProjectName();
35019 if (this_present_projectName || that_present_projectName) {
35020 if (!(this_present_projectName && that_present_projectName))
35021 return false;
35022 if (!this.projectName.equals(that.projectName))
35023 return false;
35024 }
35025
35026 return true;
35027 }
35028
35029 @Override
35030 public int hashCode() {
35031 List<Object> list = new ArrayList<Object>();
35032
35033 boolean present_projectName = true && (isSetProjectName());
35034 list.add(present_projectName);
35035 if (present_projectName)
35036 list.add(projectName);
35037
35038 return list.hashCode();
35039 }
35040
35041 @Override
35042 public int compareTo(listNamedQueries_args other) {
35043 if (!getClass().equals(other.getClass())) {
35044 return getClass().getName().compareTo(other.getClass().getName());
35045 }
35046
35047 int lastComparison = 0;
35048
35049 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
35050 if (lastComparison != 0) {
35051 return lastComparison;
35052 }
35053 if (isSetProjectName()) {
35054 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
35055 if (lastComparison != 0) {
35056 return lastComparison;
35057 }
35058 }
35059 return 0;
35060 }
35061
35062 public _Fields fieldForId(int fieldId) {
35063 return _Fields.findByThriftId(fieldId);
35064 }
35065
35066 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35067 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35068 }
35069
35070 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35071 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35072 }
35073
35074 @Override
35075 public String toString() {
35076 StringBuilder sb = new StringBuilder("listNamedQueries_args(");
35077 boolean first = true;
35078
35079 sb.append("projectName:");
35080 if (this.projectName == null) {
35081 sb.append("null");
35082 } else {
35083 sb.append(this.projectName);
35084 }
35085 first = false;
35086 sb.append(")");
35087 return sb.toString();
35088 }
35089
35090 public void validate() throws org.apache.thrift.TException {
35091
35092
35093 }
35094
35095 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35096 try {
35097 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35098 } catch (org.apache.thrift.TException te) {
35099 throw new java.io.IOException(te);
35100 }
35101 }
35102
35103 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35104 try {
35105 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35106 } catch (org.apache.thrift.TException te) {
35107 throw new java.io.IOException(te);
35108 }
35109 }
35110
35111 private static class listNamedQueries_argsStandardSchemeFactory implements SchemeFactory {
35112 public listNamedQueries_argsStandardScheme getScheme() {
35113 return new listNamedQueries_argsStandardScheme();
35114 }
35115 }
35116
35117 private static class listNamedQueries_argsStandardScheme extends StandardScheme<listNamedQueries_args> {
35118
35119 public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_args struct) throws org.apache.thrift.TException {
35120 org.apache.thrift.protocol.TField schemeField;
35121 iprot.readStructBegin();
35122 while (true)
35123 {
35124 schemeField = iprot.readFieldBegin();
35125 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35126 break;
35127 }
35128 switch (schemeField.id) {
35129 case 1:
35130 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35131 struct.projectName = iprot.readString();
35132 struct.setProjectNameIsSet(true);
35133 } else {
35134 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35135 }
35136 break;
35137 default:
35138 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35139 }
35140 iprot.readFieldEnd();
35141 }
35142 iprot.readStructEnd();
35143
35144
35145 struct.validate();
35146 }
35147
35148 public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_args struct) throws org.apache.thrift.TException {
35149 struct.validate();
35150
35151 oprot.writeStructBegin(STRUCT_DESC);
35152 if (struct.projectName != null) {
35153 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
35154 oprot.writeString(struct.projectName);
35155 oprot.writeFieldEnd();
35156 }
35157 oprot.writeFieldStop();
35158 oprot.writeStructEnd();
35159 }
35160
35161 }
35162
35163 private static class listNamedQueries_argsTupleSchemeFactory implements SchemeFactory {
35164 public listNamedQueries_argsTupleScheme getScheme() {
35165 return new listNamedQueries_argsTupleScheme();
35166 }
35167 }
35168
35169 private static class listNamedQueries_argsTupleScheme extends TupleScheme<listNamedQueries_args> {
35170
35171 @Override
35172 public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException {
35173 TTupleProtocol oprot = (TTupleProtocol) prot;
35174 BitSet optionals = new BitSet();
35175 if (struct.isSetProjectName()) {
35176 optionals.set(0);
35177 }
35178 oprot.writeBitSet(optionals, 1);
35179 if (struct.isSetProjectName()) {
35180 oprot.writeString(struct.projectName);
35181 }
35182 }
35183
35184 @Override
35185 public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException {
35186 TTupleProtocol iprot = (TTupleProtocol) prot;
35187 BitSet incoming = iprot.readBitSet(1);
35188 if (incoming.get(0)) {
35189 struct.projectName = iprot.readString();
35190 struct.setProjectNameIsSet(true);
35191 }
35192 }
35193 }
35194
35195 }
35196
35197 public static class listNamedQueries_result implements org.apache.thrift.TBase<listNamedQueries_result, listNamedQueries_result._Fields>, java.io.Serializable, Cloneable, Comparable<listNamedQueries_result> {
35198 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_result");
35199
35200 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
35201 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
35202
35203 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35204 static {
35205 schemes.put(StandardScheme.class, new listNamedQueries_resultStandardSchemeFactory());
35206 schemes.put(TupleScheme.class, new listNamedQueries_resultTupleSchemeFactory());
35207 }
35208
35209 public List<NamedQuery> success;
35210 public CentralDogmaException e;
35211
35212
35213 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35214 SUCCESS((short)0, "success"),
35215 E((short)1, "e");
35216
35217 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35218
35219 static {
35220 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35221 byName.put(field.getFieldName(), field);
35222 }
35223 }
35224
35225
35226
35227
35228 public static _Fields findByThriftId(int fieldId) {
35229 switch(fieldId) {
35230 case 0:
35231 return SUCCESS;
35232 case 1:
35233 return E;
35234 default:
35235 return null;
35236 }
35237 }
35238
35239
35240
35241
35242
35243 public static _Fields findByThriftIdOrThrow(int fieldId) {
35244 _Fields fields = findByThriftId(fieldId);
35245 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35246 return fields;
35247 }
35248
35249
35250
35251
35252 public static _Fields findByName(String name) {
35253 return byName.get(name);
35254 }
35255
35256 private final short _thriftId;
35257 private final String _fieldName;
35258
35259 _Fields(short thriftId, String fieldName) {
35260 _thriftId = thriftId;
35261 _fieldName = fieldName;
35262 }
35263
35264 public short getThriftFieldId() {
35265 return _thriftId;
35266 }
35267
35268 public String getFieldName() {
35269 return _fieldName;
35270 }
35271 }
35272
35273
35274 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35275 static {
35276 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35277 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
35278 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
35279 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class))));
35280 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
35281 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35282 metaDataMap = Collections.unmodifiableMap(tmpMap);
35283 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listNamedQueries_result.class, metaDataMap);
35284 }
35285
35286 public listNamedQueries_result() {
35287 }
35288
35289 public listNamedQueries_result(
35290 List<NamedQuery> success,
35291 CentralDogmaException e)
35292 {
35293 this();
35294 this.success = success;
35295 this.e = e;
35296 }
35297
35298
35299
35300
35301 public listNamedQueries_result(listNamedQueries_result other) {
35302 if (other.isSetSuccess()) {
35303 List<NamedQuery> __this__success = new ArrayList<NamedQuery>(other.success.size());
35304 for (NamedQuery other_element : other.success) {
35305 __this__success.add(new NamedQuery(other_element));
35306 }
35307 this.success = __this__success;
35308 }
35309 if (other.isSetE()) {
35310 this.e = new CentralDogmaException(other.e);
35311 }
35312 }
35313
35314 public listNamedQueries_result deepCopy() {
35315 return new listNamedQueries_result(this);
35316 }
35317
35318 @Override
35319 public void clear() {
35320 this.success = null;
35321 this.e = null;
35322 }
35323
35324 public int getSuccessSize() {
35325 return (this.success == null) ? 0 : this.success.size();
35326 }
35327
35328 public java.util.Iterator<NamedQuery> getSuccessIterator() {
35329 return (this.success == null) ? null : this.success.iterator();
35330 }
35331
35332 public void addToSuccess(NamedQuery elem) {
35333 if (this.success == null) {
35334 this.success = new ArrayList<NamedQuery>();
35335 }
35336 this.success.add(elem);
35337 }
35338
35339 public List<NamedQuery> getSuccess() {
35340 return this.success;
35341 }
35342
35343 public listNamedQueries_result setSuccess(List<NamedQuery> success) {
35344 this.success = success;
35345 return this;
35346 }
35347
35348 public void unsetSuccess() {
35349 this.success = null;
35350 }
35351
35352
35353 public boolean isSetSuccess() {
35354 return this.success != null;
35355 }
35356
35357 public void setSuccessIsSet(boolean value) {
35358 if (!value) {
35359 this.success = null;
35360 }
35361 }
35362
35363 public CentralDogmaException getE() {
35364 return this.e;
35365 }
35366
35367 public listNamedQueries_result setE(CentralDogmaException e) {
35368 this.e = e;
35369 return this;
35370 }
35371
35372 public void unsetE() {
35373 this.e = null;
35374 }
35375
35376
35377 public boolean isSetE() {
35378 return this.e != null;
35379 }
35380
35381 public void setEIsSet(boolean value) {
35382 if (!value) {
35383 this.e = null;
35384 }
35385 }
35386
35387 public void setFieldValue(_Fields field, Object value) {
35388 switch (field) {
35389 case SUCCESS:
35390 if (value == null) {
35391 unsetSuccess();
35392 } else {
35393 setSuccess((List<NamedQuery>)value);
35394 }
35395 break;
35396
35397 case E:
35398 if (value == null) {
35399 unsetE();
35400 } else {
35401 setE((CentralDogmaException)value);
35402 }
35403 break;
35404
35405 }
35406 }
35407
35408 public Object getFieldValue(_Fields field) {
35409 switch (field) {
35410 case SUCCESS:
35411 return getSuccess();
35412
35413 case E:
35414 return getE();
35415
35416 }
35417 throw new IllegalStateException();
35418 }
35419
35420
35421 public boolean isSet(_Fields field) {
35422 if (field == null) {
35423 throw new IllegalArgumentException();
35424 }
35425
35426 switch (field) {
35427 case SUCCESS:
35428 return isSetSuccess();
35429 case E:
35430 return isSetE();
35431 }
35432 throw new IllegalStateException();
35433 }
35434
35435 @Override
35436 public boolean equals(Object that) {
35437 if (that == null)
35438 return false;
35439 if (that instanceof listNamedQueries_result)
35440 return this.equals((listNamedQueries_result)that);
35441 return false;
35442 }
35443
35444 public boolean equals(listNamedQueries_result that) {
35445 if (that == null)
35446 return false;
35447
35448 boolean this_present_success = true && this.isSetSuccess();
35449 boolean that_present_success = true && that.isSetSuccess();
35450 if (this_present_success || that_present_success) {
35451 if (!(this_present_success && that_present_success))
35452 return false;
35453 if (!this.success.equals(that.success))
35454 return false;
35455 }
35456
35457 boolean this_present_e = true && this.isSetE();
35458 boolean that_present_e = true && that.isSetE();
35459 if (this_present_e || that_present_e) {
35460 if (!(this_present_e && that_present_e))
35461 return false;
35462 if (!this.e.equals(that.e))
35463 return false;
35464 }
35465
35466 return true;
35467 }
35468
35469 @Override
35470 public int hashCode() {
35471 List<Object> list = new ArrayList<Object>();
35472
35473 boolean present_success = true && (isSetSuccess());
35474 list.add(present_success);
35475 if (present_success)
35476 list.add(success);
35477
35478 boolean present_e = true && (isSetE());
35479 list.add(present_e);
35480 if (present_e)
35481 list.add(e);
35482
35483 return list.hashCode();
35484 }
35485
35486 @Override
35487 public int compareTo(listNamedQueries_result other) {
35488 if (!getClass().equals(other.getClass())) {
35489 return getClass().getName().compareTo(other.getClass().getName());
35490 }
35491
35492 int lastComparison = 0;
35493
35494 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
35495 if (lastComparison != 0) {
35496 return lastComparison;
35497 }
35498 if (isSetSuccess()) {
35499 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
35500 if (lastComparison != 0) {
35501 return lastComparison;
35502 }
35503 }
35504 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
35505 if (lastComparison != 0) {
35506 return lastComparison;
35507 }
35508 if (isSetE()) {
35509 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
35510 if (lastComparison != 0) {
35511 return lastComparison;
35512 }
35513 }
35514 return 0;
35515 }
35516
35517 public _Fields fieldForId(int fieldId) {
35518 return _Fields.findByThriftId(fieldId);
35519 }
35520
35521 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35522 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35523 }
35524
35525 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35526 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35527 }
35528
35529 @Override
35530 public String toString() {
35531 StringBuilder sb = new StringBuilder("listNamedQueries_result(");
35532 boolean first = true;
35533
35534 sb.append("success:");
35535 if (this.success == null) {
35536 sb.append("null");
35537 } else {
35538 sb.append(this.success);
35539 }
35540 first = false;
35541 if (!first) sb.append(", ");
35542 sb.append("e:");
35543 if (this.e == null) {
35544 sb.append("null");
35545 } else {
35546 sb.append(this.e);
35547 }
35548 first = false;
35549 sb.append(")");
35550 return sb.toString();
35551 }
35552
35553 public void validate() throws org.apache.thrift.TException {
35554
35555
35556 }
35557
35558 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35559 try {
35560 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35561 } catch (org.apache.thrift.TException te) {
35562 throw new java.io.IOException(te);
35563 }
35564 }
35565
35566 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35567 try {
35568 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35569 } catch (org.apache.thrift.TException te) {
35570 throw new java.io.IOException(te);
35571 }
35572 }
35573
35574 private static class listNamedQueries_resultStandardSchemeFactory implements SchemeFactory {
35575 public listNamedQueries_resultStandardScheme getScheme() {
35576 return new listNamedQueries_resultStandardScheme();
35577 }
35578 }
35579
35580 private static class listNamedQueries_resultStandardScheme extends StandardScheme<listNamedQueries_result> {
35581
35582 public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_result struct) throws org.apache.thrift.TException {
35583 org.apache.thrift.protocol.TField schemeField;
35584 iprot.readStructBegin();
35585 while (true)
35586 {
35587 schemeField = iprot.readFieldBegin();
35588 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35589 break;
35590 }
35591 switch (schemeField.id) {
35592 case 0:
35593 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
35594 {
35595 org.apache.thrift.protocol.TList _list160 = iprot.readListBegin();
35596 struct.success = new ArrayList<NamedQuery>(_list160.size);
35597 NamedQuery _elem161;
35598 for (int _i162 = 0; _i162 < _list160.size; ++_i162)
35599 {
35600 _elem161 = new NamedQuery();
35601 _elem161.read(iprot);
35602 struct.success.add(_elem161);
35603 }
35604 iprot.readListEnd();
35605 }
35606 struct.setSuccessIsSet(true);
35607 } else {
35608 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35609 }
35610 break;
35611 case 1:
35612 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
35613 struct.e = new CentralDogmaException();
35614 struct.e.read(iprot);
35615 struct.setEIsSet(true);
35616 } else {
35617 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35618 }
35619 break;
35620 default:
35621 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35622 }
35623 iprot.readFieldEnd();
35624 }
35625 iprot.readStructEnd();
35626
35627
35628 struct.validate();
35629 }
35630
35631 public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_result struct) throws org.apache.thrift.TException {
35632 struct.validate();
35633
35634 oprot.writeStructBegin(STRUCT_DESC);
35635 if (struct.success != null) {
35636 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35637 {
35638 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
35639 for (NamedQuery _iter163 : struct.success)
35640 {
35641 _iter163.write(oprot);
35642 }
35643 oprot.writeListEnd();
35644 }
35645 oprot.writeFieldEnd();
35646 }
35647 if (struct.e != null) {
35648 oprot.writeFieldBegin(E_FIELD_DESC);
35649 struct.e.write(oprot);
35650 oprot.writeFieldEnd();
35651 }
35652 oprot.writeFieldStop();
35653 oprot.writeStructEnd();
35654 }
35655
35656 }
35657
35658 private static class listNamedQueries_resultTupleSchemeFactory implements SchemeFactory {
35659 public listNamedQueries_resultTupleScheme getScheme() {
35660 return new listNamedQueries_resultTupleScheme();
35661 }
35662 }
35663
35664 private static class listNamedQueries_resultTupleScheme extends TupleScheme<listNamedQueries_result> {
35665
35666 @Override
35667 public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException {
35668 TTupleProtocol oprot = (TTupleProtocol) prot;
35669 BitSet optionals = new BitSet();
35670 if (struct.isSetSuccess()) {
35671 optionals.set(0);
35672 }
35673 if (struct.isSetE()) {
35674 optionals.set(1);
35675 }
35676 oprot.writeBitSet(optionals, 2);
35677 if (struct.isSetSuccess()) {
35678 {
35679 oprot.writeI32(struct.success.size());
35680 for (NamedQuery _iter164 : struct.success)
35681 {
35682 _iter164.write(oprot);
35683 }
35684 }
35685 }
35686 if (struct.isSetE()) {
35687 struct.e.write(oprot);
35688 }
35689 }
35690
35691 @Override
35692 public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException {
35693 TTupleProtocol iprot = (TTupleProtocol) prot;
35694 BitSet incoming = iprot.readBitSet(2);
35695 if (incoming.get(0)) {
35696 {
35697 org.apache.thrift.protocol.TList _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
35698 struct.success = new ArrayList<NamedQuery>(_list165.size);
35699 NamedQuery _elem166;
35700 for (int _i167 = 0; _i167 < _list165.size; ++_i167)
35701 {
35702 _elem166 = new NamedQuery();
35703 _elem166.read(iprot);
35704 struct.success.add(_elem166);
35705 }
35706 }
35707 struct.setSuccessIsSet(true);
35708 }
35709 if (incoming.get(1)) {
35710 struct.e = new CentralDogmaException();
35711 struct.e.read(iprot);
35712 struct.setEIsSet(true);
35713 }
35714 }
35715 }
35716
35717 }
35718
35719 public static class getPlugin_args implements org.apache.thrift.TBase<getPlugin_args, getPlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPlugin_args> {
35720 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_args");
35721
35722 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
35723 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
35724
35725 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35726 static {
35727 schemes.put(StandardScheme.class, new getPlugin_argsStandardSchemeFactory());
35728 schemes.put(TupleScheme.class, new getPlugin_argsTupleSchemeFactory());
35729 }
35730
35731 public String projectName;
35732 public String pluginName;
35733
35734
35735 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35736 PROJECT_NAME((short)1, "projectName"),
35737 PLUGIN_NAME((short)2, "pluginName");
35738
35739 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35740
35741 static {
35742 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35743 byName.put(field.getFieldName(), field);
35744 }
35745 }
35746
35747
35748
35749
35750 public static _Fields findByThriftId(int fieldId) {
35751 switch(fieldId) {
35752 case 1:
35753 return PROJECT_NAME;
35754 case 2:
35755 return PLUGIN_NAME;
35756 default:
35757 return null;
35758 }
35759 }
35760
35761
35762
35763
35764
35765 public static _Fields findByThriftIdOrThrow(int fieldId) {
35766 _Fields fields = findByThriftId(fieldId);
35767 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35768 return fields;
35769 }
35770
35771
35772
35773
35774 public static _Fields findByName(String name) {
35775 return byName.get(name);
35776 }
35777
35778 private final short _thriftId;
35779 private final String _fieldName;
35780
35781 _Fields(short thriftId, String fieldName) {
35782 _thriftId = thriftId;
35783 _fieldName = fieldName;
35784 }
35785
35786 public short getThriftFieldId() {
35787 return _thriftId;
35788 }
35789
35790 public String getFieldName() {
35791 return _fieldName;
35792 }
35793 }
35794
35795
35796 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35797 static {
35798 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35799 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
35800 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
35801 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
35802 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
35803 metaDataMap = Collections.unmodifiableMap(tmpMap);
35804 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPlugin_args.class, metaDataMap);
35805 }
35806
35807 public getPlugin_args() {
35808 }
35809
35810 public getPlugin_args(
35811 String projectName,
35812 String pluginName)
35813 {
35814 this();
35815 this.projectName = projectName;
35816 this.pluginName = pluginName;
35817 }
35818
35819
35820
35821
35822 public getPlugin_args(getPlugin_args other) {
35823 if (other.isSetProjectName()) {
35824 this.projectName = other.projectName;
35825 }
35826 if (other.isSetPluginName()) {
35827 this.pluginName = other.pluginName;
35828 }
35829 }
35830
35831 public getPlugin_args deepCopy() {
35832 return new getPlugin_args(this);
35833 }
35834
35835 @Override
35836 public void clear() {
35837 this.projectName = null;
35838 this.pluginName = null;
35839 }
35840
35841 public String getProjectName() {
35842 return this.projectName;
35843 }
35844
35845 public getPlugin_args setProjectName(String projectName) {
35846 this.projectName = projectName;
35847 return this;
35848 }
35849
35850 public void unsetProjectName() {
35851 this.projectName = null;
35852 }
35853
35854
35855 public boolean isSetProjectName() {
35856 return this.projectName != null;
35857 }
35858
35859 public void setProjectNameIsSet(boolean value) {
35860 if (!value) {
35861 this.projectName = null;
35862 }
35863 }
35864
35865 public String getPluginName() {
35866 return this.pluginName;
35867 }
35868
35869 public getPlugin_args setPluginName(String pluginName) {
35870 this.pluginName = pluginName;
35871 return this;
35872 }
35873
35874 public void unsetPluginName() {
35875 this.pluginName = null;
35876 }
35877
35878
35879 public boolean isSetPluginName() {
35880 return this.pluginName != null;
35881 }
35882
35883 public void setPluginNameIsSet(boolean value) {
35884 if (!value) {
35885 this.pluginName = null;
35886 }
35887 }
35888
35889 public void setFieldValue(_Fields field, Object value) {
35890 switch (field) {
35891 case PROJECT_NAME:
35892 if (value == null) {
35893 unsetProjectName();
35894 } else {
35895 setProjectName((String)value);
35896 }
35897 break;
35898
35899 case PLUGIN_NAME:
35900 if (value == null) {
35901 unsetPluginName();
35902 } else {
35903 setPluginName((String)value);
35904 }
35905 break;
35906
35907 }
35908 }
35909
35910 public Object getFieldValue(_Fields field) {
35911 switch (field) {
35912 case PROJECT_NAME:
35913 return getProjectName();
35914
35915 case PLUGIN_NAME:
35916 return getPluginName();
35917
35918 }
35919 throw new IllegalStateException();
35920 }
35921
35922
35923 public boolean isSet(_Fields field) {
35924 if (field == null) {
35925 throw new IllegalArgumentException();
35926 }
35927
35928 switch (field) {
35929 case PROJECT_NAME:
35930 return isSetProjectName();
35931 case PLUGIN_NAME:
35932 return isSetPluginName();
35933 }
35934 throw new IllegalStateException();
35935 }
35936
35937 @Override
35938 public boolean equals(Object that) {
35939 if (that == null)
35940 return false;
35941 if (that instanceof getPlugin_args)
35942 return this.equals((getPlugin_args)that);
35943 return false;
35944 }
35945
35946 public boolean equals(getPlugin_args that) {
35947 if (that == null)
35948 return false;
35949
35950 boolean this_present_projectName = true && this.isSetProjectName();
35951 boolean that_present_projectName = true && that.isSetProjectName();
35952 if (this_present_projectName || that_present_projectName) {
35953 if (!(this_present_projectName && that_present_projectName))
35954 return false;
35955 if (!this.projectName.equals(that.projectName))
35956 return false;
35957 }
35958
35959 boolean this_present_pluginName = true && this.isSetPluginName();
35960 boolean that_present_pluginName = true && that.isSetPluginName();
35961 if (this_present_pluginName || that_present_pluginName) {
35962 if (!(this_present_pluginName && that_present_pluginName))
35963 return false;
35964 if (!this.pluginName.equals(that.pluginName))
35965 return false;
35966 }
35967
35968 return true;
35969 }
35970
35971 @Override
35972 public int hashCode() {
35973 List<Object> list = new ArrayList<Object>();
35974
35975 boolean present_projectName = true && (isSetProjectName());
35976 list.add(present_projectName);
35977 if (present_projectName)
35978 list.add(projectName);
35979
35980 boolean present_pluginName = true && (isSetPluginName());
35981 list.add(present_pluginName);
35982 if (present_pluginName)
35983 list.add(pluginName);
35984
35985 return list.hashCode();
35986 }
35987
35988 @Override
35989 public int compareTo(getPlugin_args other) {
35990 if (!getClass().equals(other.getClass())) {
35991 return getClass().getName().compareTo(other.getClass().getName());
35992 }
35993
35994 int lastComparison = 0;
35995
35996 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
35997 if (lastComparison != 0) {
35998 return lastComparison;
35999 }
36000 if (isSetProjectName()) {
36001 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
36002 if (lastComparison != 0) {
36003 return lastComparison;
36004 }
36005 }
36006 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
36007 if (lastComparison != 0) {
36008 return lastComparison;
36009 }
36010 if (isSetPluginName()) {
36011 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
36012 if (lastComparison != 0) {
36013 return lastComparison;
36014 }
36015 }
36016 return 0;
36017 }
36018
36019 public _Fields fieldForId(int fieldId) {
36020 return _Fields.findByThriftId(fieldId);
36021 }
36022
36023 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36024 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36025 }
36026
36027 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36028 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36029 }
36030
36031 @Override
36032 public String toString() {
36033 StringBuilder sb = new StringBuilder("getPlugin_args(");
36034 boolean first = true;
36035
36036 sb.append("projectName:");
36037 if (this.projectName == null) {
36038 sb.append("null");
36039 } else {
36040 sb.append(this.projectName);
36041 }
36042 first = false;
36043 if (!first) sb.append(", ");
36044 sb.append("pluginName:");
36045 if (this.pluginName == null) {
36046 sb.append("null");
36047 } else {
36048 sb.append(this.pluginName);
36049 }
36050 first = false;
36051 sb.append(")");
36052 return sb.toString();
36053 }
36054
36055 public void validate() throws org.apache.thrift.TException {
36056
36057
36058 }
36059
36060 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36061 try {
36062 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36063 } catch (org.apache.thrift.TException te) {
36064 throw new java.io.IOException(te);
36065 }
36066 }
36067
36068 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36069 try {
36070 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36071 } catch (org.apache.thrift.TException te) {
36072 throw new java.io.IOException(te);
36073 }
36074 }
36075
36076 private static class getPlugin_argsStandardSchemeFactory implements SchemeFactory {
36077 public getPlugin_argsStandardScheme getScheme() {
36078 return new getPlugin_argsStandardScheme();
36079 }
36080 }
36081
36082 private static class getPlugin_argsStandardScheme extends StandardScheme<getPlugin_args> {
36083
36084 public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_args struct) throws org.apache.thrift.TException {
36085 org.apache.thrift.protocol.TField schemeField;
36086 iprot.readStructBegin();
36087 while (true)
36088 {
36089 schemeField = iprot.readFieldBegin();
36090 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36091 break;
36092 }
36093 switch (schemeField.id) {
36094 case 1:
36095 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36096 struct.projectName = iprot.readString();
36097 struct.setProjectNameIsSet(true);
36098 } else {
36099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36100 }
36101 break;
36102 case 2:
36103 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
36104 struct.pluginName = iprot.readString();
36105 struct.setPluginNameIsSet(true);
36106 } else {
36107 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36108 }
36109 break;
36110 default:
36111 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36112 }
36113 iprot.readFieldEnd();
36114 }
36115 iprot.readStructEnd();
36116
36117
36118 struct.validate();
36119 }
36120
36121 public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_args struct) throws org.apache.thrift.TException {
36122 struct.validate();
36123
36124 oprot.writeStructBegin(STRUCT_DESC);
36125 if (struct.projectName != null) {
36126 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
36127 oprot.writeString(struct.projectName);
36128 oprot.writeFieldEnd();
36129 }
36130 if (struct.pluginName != null) {
36131 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
36132 oprot.writeString(struct.pluginName);
36133 oprot.writeFieldEnd();
36134 }
36135 oprot.writeFieldStop();
36136 oprot.writeStructEnd();
36137 }
36138
36139 }
36140
36141 private static class getPlugin_argsTupleSchemeFactory implements SchemeFactory {
36142 public getPlugin_argsTupleScheme getScheme() {
36143 return new getPlugin_argsTupleScheme();
36144 }
36145 }
36146
36147 private static class getPlugin_argsTupleScheme extends TupleScheme<getPlugin_args> {
36148
36149 @Override
36150 public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException {
36151 TTupleProtocol oprot = (TTupleProtocol) prot;
36152 BitSet optionals = new BitSet();
36153 if (struct.isSetProjectName()) {
36154 optionals.set(0);
36155 }
36156 if (struct.isSetPluginName()) {
36157 optionals.set(1);
36158 }
36159 oprot.writeBitSet(optionals, 2);
36160 if (struct.isSetProjectName()) {
36161 oprot.writeString(struct.projectName);
36162 }
36163 if (struct.isSetPluginName()) {
36164 oprot.writeString(struct.pluginName);
36165 }
36166 }
36167
36168 @Override
36169 public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException {
36170 TTupleProtocol iprot = (TTupleProtocol) prot;
36171 BitSet incoming = iprot.readBitSet(2);
36172 if (incoming.get(0)) {
36173 struct.projectName = iprot.readString();
36174 struct.setProjectNameIsSet(true);
36175 }
36176 if (incoming.get(1)) {
36177 struct.pluginName = iprot.readString();
36178 struct.setPluginNameIsSet(true);
36179 }
36180 }
36181 }
36182
36183 }
36184
36185 public static class getPlugin_result implements org.apache.thrift.TBase<getPlugin_result, getPlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPlugin_result> {
36186 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_result");
36187
36188 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
36189 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
36190
36191 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36192 static {
36193 schemes.put(StandardScheme.class, new getPlugin_resultStandardSchemeFactory());
36194 schemes.put(TupleScheme.class, new getPlugin_resultTupleSchemeFactory());
36195 }
36196
36197 public Plugin success;
36198 public CentralDogmaException e;
36199
36200
36201 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36202 SUCCESS((short)0, "success"),
36203 E((short)1, "e");
36204
36205 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36206
36207 static {
36208 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36209 byName.put(field.getFieldName(), field);
36210 }
36211 }
36212
36213
36214
36215
36216 public static _Fields findByThriftId(int fieldId) {
36217 switch(fieldId) {
36218 case 0:
36219 return SUCCESS;
36220 case 1:
36221 return E;
36222 default:
36223 return null;
36224 }
36225 }
36226
36227
36228
36229
36230
36231 public static _Fields findByThriftIdOrThrow(int fieldId) {
36232 _Fields fields = findByThriftId(fieldId);
36233 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36234 return fields;
36235 }
36236
36237
36238
36239
36240 public static _Fields findByName(String name) {
36241 return byName.get(name);
36242 }
36243
36244 private final short _thriftId;
36245 private final String _fieldName;
36246
36247 _Fields(short thriftId, String fieldName) {
36248 _thriftId = thriftId;
36249 _fieldName = fieldName;
36250 }
36251
36252 public short getThriftFieldId() {
36253 return _thriftId;
36254 }
36255
36256 public String getFieldName() {
36257 return _fieldName;
36258 }
36259 }
36260
36261
36262 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36263 static {
36264 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36265 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
36266 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class)));
36267 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
36268 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36269 metaDataMap = Collections.unmodifiableMap(tmpMap);
36270 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPlugin_result.class, metaDataMap);
36271 }
36272
36273 public getPlugin_result() {
36274 }
36275
36276 public getPlugin_result(
36277 Plugin success,
36278 CentralDogmaException e)
36279 {
36280 this();
36281 this.success = success;
36282 this.e = e;
36283 }
36284
36285
36286
36287
36288 public getPlugin_result(getPlugin_result other) {
36289 if (other.isSetSuccess()) {
36290 this.success = new Plugin(other.success);
36291 }
36292 if (other.isSetE()) {
36293 this.e = new CentralDogmaException(other.e);
36294 }
36295 }
36296
36297 public getPlugin_result deepCopy() {
36298 return new getPlugin_result(this);
36299 }
36300
36301 @Override
36302 public void clear() {
36303 this.success = null;
36304 this.e = null;
36305 }
36306
36307 public Plugin getSuccess() {
36308 return this.success;
36309 }
36310
36311 public getPlugin_result setSuccess(Plugin success) {
36312 this.success = success;
36313 return this;
36314 }
36315
36316 public void unsetSuccess() {
36317 this.success = null;
36318 }
36319
36320
36321 public boolean isSetSuccess() {
36322 return this.success != null;
36323 }
36324
36325 public void setSuccessIsSet(boolean value) {
36326 if (!value) {
36327 this.success = null;
36328 }
36329 }
36330
36331 public CentralDogmaException getE() {
36332 return this.e;
36333 }
36334
36335 public getPlugin_result setE(CentralDogmaException e) {
36336 this.e = e;
36337 return this;
36338 }
36339
36340 public void unsetE() {
36341 this.e = null;
36342 }
36343
36344
36345 public boolean isSetE() {
36346 return this.e != null;
36347 }
36348
36349 public void setEIsSet(boolean value) {
36350 if (!value) {
36351 this.e = null;
36352 }
36353 }
36354
36355 public void setFieldValue(_Fields field, Object value) {
36356 switch (field) {
36357 case SUCCESS:
36358 if (value == null) {
36359 unsetSuccess();
36360 } else {
36361 setSuccess((Plugin)value);
36362 }
36363 break;
36364
36365 case E:
36366 if (value == null) {
36367 unsetE();
36368 } else {
36369 setE((CentralDogmaException)value);
36370 }
36371 break;
36372
36373 }
36374 }
36375
36376 public Object getFieldValue(_Fields field) {
36377 switch (field) {
36378 case SUCCESS:
36379 return getSuccess();
36380
36381 case E:
36382 return getE();
36383
36384 }
36385 throw new IllegalStateException();
36386 }
36387
36388
36389 public boolean isSet(_Fields field) {
36390 if (field == null) {
36391 throw new IllegalArgumentException();
36392 }
36393
36394 switch (field) {
36395 case SUCCESS:
36396 return isSetSuccess();
36397 case E:
36398 return isSetE();
36399 }
36400 throw new IllegalStateException();
36401 }
36402
36403 @Override
36404 public boolean equals(Object that) {
36405 if (that == null)
36406 return false;
36407 if (that instanceof getPlugin_result)
36408 return this.equals((getPlugin_result)that);
36409 return false;
36410 }
36411
36412 public boolean equals(getPlugin_result that) {
36413 if (that == null)
36414 return false;
36415
36416 boolean this_present_success = true && this.isSetSuccess();
36417 boolean that_present_success = true && that.isSetSuccess();
36418 if (this_present_success || that_present_success) {
36419 if (!(this_present_success && that_present_success))
36420 return false;
36421 if (!this.success.equals(that.success))
36422 return false;
36423 }
36424
36425 boolean this_present_e = true && this.isSetE();
36426 boolean that_present_e = true && that.isSetE();
36427 if (this_present_e || that_present_e) {
36428 if (!(this_present_e && that_present_e))
36429 return false;
36430 if (!this.e.equals(that.e))
36431 return false;
36432 }
36433
36434 return true;
36435 }
36436
36437 @Override
36438 public int hashCode() {
36439 List<Object> list = new ArrayList<Object>();
36440
36441 boolean present_success = true && (isSetSuccess());
36442 list.add(present_success);
36443 if (present_success)
36444 list.add(success);
36445
36446 boolean present_e = true && (isSetE());
36447 list.add(present_e);
36448 if (present_e)
36449 list.add(e);
36450
36451 return list.hashCode();
36452 }
36453
36454 @Override
36455 public int compareTo(getPlugin_result other) {
36456 if (!getClass().equals(other.getClass())) {
36457 return getClass().getName().compareTo(other.getClass().getName());
36458 }
36459
36460 int lastComparison = 0;
36461
36462 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
36463 if (lastComparison != 0) {
36464 return lastComparison;
36465 }
36466 if (isSetSuccess()) {
36467 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
36468 if (lastComparison != 0) {
36469 return lastComparison;
36470 }
36471 }
36472 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
36473 if (lastComparison != 0) {
36474 return lastComparison;
36475 }
36476 if (isSetE()) {
36477 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
36478 if (lastComparison != 0) {
36479 return lastComparison;
36480 }
36481 }
36482 return 0;
36483 }
36484
36485 public _Fields fieldForId(int fieldId) {
36486 return _Fields.findByThriftId(fieldId);
36487 }
36488
36489 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36490 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36491 }
36492
36493 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36494 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36495 }
36496
36497 @Override
36498 public String toString() {
36499 StringBuilder sb = new StringBuilder("getPlugin_result(");
36500 boolean first = true;
36501
36502 sb.append("success:");
36503 if (this.success == null) {
36504 sb.append("null");
36505 } else {
36506 sb.append(this.success);
36507 }
36508 first = false;
36509 if (!first) sb.append(", ");
36510 sb.append("e:");
36511 if (this.e == null) {
36512 sb.append("null");
36513 } else {
36514 sb.append(this.e);
36515 }
36516 first = false;
36517 sb.append(")");
36518 return sb.toString();
36519 }
36520
36521 public void validate() throws org.apache.thrift.TException {
36522
36523
36524 if (success != null) {
36525 success.validate();
36526 }
36527 }
36528
36529 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36530 try {
36531 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36532 } catch (org.apache.thrift.TException te) {
36533 throw new java.io.IOException(te);
36534 }
36535 }
36536
36537 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36538 try {
36539 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36540 } catch (org.apache.thrift.TException te) {
36541 throw new java.io.IOException(te);
36542 }
36543 }
36544
36545 private static class getPlugin_resultStandardSchemeFactory implements SchemeFactory {
36546 public getPlugin_resultStandardScheme getScheme() {
36547 return new getPlugin_resultStandardScheme();
36548 }
36549 }
36550
36551 private static class getPlugin_resultStandardScheme extends StandardScheme<getPlugin_result> {
36552
36553 public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_result struct) throws org.apache.thrift.TException {
36554 org.apache.thrift.protocol.TField schemeField;
36555 iprot.readStructBegin();
36556 while (true)
36557 {
36558 schemeField = iprot.readFieldBegin();
36559 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36560 break;
36561 }
36562 switch (schemeField.id) {
36563 case 0:
36564 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
36565 struct.success = new Plugin();
36566 struct.success.read(iprot);
36567 struct.setSuccessIsSet(true);
36568 } else {
36569 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36570 }
36571 break;
36572 case 1:
36573 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
36574 struct.e = new CentralDogmaException();
36575 struct.e.read(iprot);
36576 struct.setEIsSet(true);
36577 } else {
36578 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36579 }
36580 break;
36581 default:
36582 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36583 }
36584 iprot.readFieldEnd();
36585 }
36586 iprot.readStructEnd();
36587
36588
36589 struct.validate();
36590 }
36591
36592 public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_result struct) throws org.apache.thrift.TException {
36593 struct.validate();
36594
36595 oprot.writeStructBegin(STRUCT_DESC);
36596 if (struct.success != null) {
36597 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36598 struct.success.write(oprot);
36599 oprot.writeFieldEnd();
36600 }
36601 if (struct.e != null) {
36602 oprot.writeFieldBegin(E_FIELD_DESC);
36603 struct.e.write(oprot);
36604 oprot.writeFieldEnd();
36605 }
36606 oprot.writeFieldStop();
36607 oprot.writeStructEnd();
36608 }
36609
36610 }
36611
36612 private static class getPlugin_resultTupleSchemeFactory implements SchemeFactory {
36613 public getPlugin_resultTupleScheme getScheme() {
36614 return new getPlugin_resultTupleScheme();
36615 }
36616 }
36617
36618 private static class getPlugin_resultTupleScheme extends TupleScheme<getPlugin_result> {
36619
36620 @Override
36621 public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException {
36622 TTupleProtocol oprot = (TTupleProtocol) prot;
36623 BitSet optionals = new BitSet();
36624 if (struct.isSetSuccess()) {
36625 optionals.set(0);
36626 }
36627 if (struct.isSetE()) {
36628 optionals.set(1);
36629 }
36630 oprot.writeBitSet(optionals, 2);
36631 if (struct.isSetSuccess()) {
36632 struct.success.write(oprot);
36633 }
36634 if (struct.isSetE()) {
36635 struct.e.write(oprot);
36636 }
36637 }
36638
36639 @Override
36640 public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException {
36641 TTupleProtocol iprot = (TTupleProtocol) prot;
36642 BitSet incoming = iprot.readBitSet(2);
36643 if (incoming.get(0)) {
36644 struct.success = new Plugin();
36645 struct.success.read(iprot);
36646 struct.setSuccessIsSet(true);
36647 }
36648 if (incoming.get(1)) {
36649 struct.e = new CentralDogmaException();
36650 struct.e.read(iprot);
36651 struct.setEIsSet(true);
36652 }
36653 }
36654 }
36655
36656 }
36657
36658 public static class savePlugin_args implements org.apache.thrift.TBase<savePlugin_args, savePlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<savePlugin_args> {
36659 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_args");
36660
36661 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
36662 private static final org.apache.thrift.protocol.TField PLUGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("plugin", org.apache.thrift.protocol.TType.STRUCT, (short)2);
36663
36664 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36665 static {
36666 schemes.put(StandardScheme.class, new savePlugin_argsStandardSchemeFactory());
36667 schemes.put(TupleScheme.class, new savePlugin_argsTupleSchemeFactory());
36668 }
36669
36670 public String projectName;
36671 public Plugin plugin;
36672
36673
36674 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36675 PROJECT_NAME((short)1, "projectName"),
36676 PLUGIN((short)2, "plugin");
36677
36678 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36679
36680 static {
36681 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36682 byName.put(field.getFieldName(), field);
36683 }
36684 }
36685
36686
36687
36688
36689 public static _Fields findByThriftId(int fieldId) {
36690 switch(fieldId) {
36691 case 1:
36692 return PROJECT_NAME;
36693 case 2:
36694 return PLUGIN;
36695 default:
36696 return null;
36697 }
36698 }
36699
36700
36701
36702
36703
36704 public static _Fields findByThriftIdOrThrow(int fieldId) {
36705 _Fields fields = findByThriftId(fieldId);
36706 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36707 return fields;
36708 }
36709
36710
36711
36712
36713 public static _Fields findByName(String name) {
36714 return byName.get(name);
36715 }
36716
36717 private final short _thriftId;
36718 private final String _fieldName;
36719
36720 _Fields(short thriftId, String fieldName) {
36721 _thriftId = thriftId;
36722 _fieldName = fieldName;
36723 }
36724
36725 public short getThriftFieldId() {
36726 return _thriftId;
36727 }
36728
36729 public String getFieldName() {
36730 return _fieldName;
36731 }
36732 }
36733
36734
36735 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36736 static {
36737 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36738 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
36739 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
36740 tmpMap.put(_Fields.PLUGIN, new org.apache.thrift.meta_data.FieldMetaData("plugin", org.apache.thrift.TFieldRequirementType.DEFAULT,
36741 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class)));
36742 metaDataMap = Collections.unmodifiableMap(tmpMap);
36743 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePlugin_args.class, metaDataMap);
36744 }
36745
36746 public savePlugin_args() {
36747 }
36748
36749 public savePlugin_args(
36750 String projectName,
36751 Plugin plugin)
36752 {
36753 this();
36754 this.projectName = projectName;
36755 this.plugin = plugin;
36756 }
36757
36758
36759
36760
36761 public savePlugin_args(savePlugin_args other) {
36762 if (other.isSetProjectName()) {
36763 this.projectName = other.projectName;
36764 }
36765 if (other.isSetPlugin()) {
36766 this.plugin = new Plugin(other.plugin);
36767 }
36768 }
36769
36770 public savePlugin_args deepCopy() {
36771 return new savePlugin_args(this);
36772 }
36773
36774 @Override
36775 public void clear() {
36776 this.projectName = null;
36777 this.plugin = null;
36778 }
36779
36780 public String getProjectName() {
36781 return this.projectName;
36782 }
36783
36784 public savePlugin_args setProjectName(String projectName) {
36785 this.projectName = projectName;
36786 return this;
36787 }
36788
36789 public void unsetProjectName() {
36790 this.projectName = null;
36791 }
36792
36793
36794 public boolean isSetProjectName() {
36795 return this.projectName != null;
36796 }
36797
36798 public void setProjectNameIsSet(boolean value) {
36799 if (!value) {
36800 this.projectName = null;
36801 }
36802 }
36803
36804 public Plugin getPlugin() {
36805 return this.plugin;
36806 }
36807
36808 public savePlugin_args setPlugin(Plugin plugin) {
36809 this.plugin = plugin;
36810 return this;
36811 }
36812
36813 public void unsetPlugin() {
36814 this.plugin = null;
36815 }
36816
36817
36818 public boolean isSetPlugin() {
36819 return this.plugin != null;
36820 }
36821
36822 public void setPluginIsSet(boolean value) {
36823 if (!value) {
36824 this.plugin = null;
36825 }
36826 }
36827
36828 public void setFieldValue(_Fields field, Object value) {
36829 switch (field) {
36830 case PROJECT_NAME:
36831 if (value == null) {
36832 unsetProjectName();
36833 } else {
36834 setProjectName((String)value);
36835 }
36836 break;
36837
36838 case PLUGIN:
36839 if (value == null) {
36840 unsetPlugin();
36841 } else {
36842 setPlugin((Plugin)value);
36843 }
36844 break;
36845
36846 }
36847 }
36848
36849 public Object getFieldValue(_Fields field) {
36850 switch (field) {
36851 case PROJECT_NAME:
36852 return getProjectName();
36853
36854 case PLUGIN:
36855 return getPlugin();
36856
36857 }
36858 throw new IllegalStateException();
36859 }
36860
36861
36862 public boolean isSet(_Fields field) {
36863 if (field == null) {
36864 throw new IllegalArgumentException();
36865 }
36866
36867 switch (field) {
36868 case PROJECT_NAME:
36869 return isSetProjectName();
36870 case PLUGIN:
36871 return isSetPlugin();
36872 }
36873 throw new IllegalStateException();
36874 }
36875
36876 @Override
36877 public boolean equals(Object that) {
36878 if (that == null)
36879 return false;
36880 if (that instanceof savePlugin_args)
36881 return this.equals((savePlugin_args)that);
36882 return false;
36883 }
36884
36885 public boolean equals(savePlugin_args that) {
36886 if (that == null)
36887 return false;
36888
36889 boolean this_present_projectName = true && this.isSetProjectName();
36890 boolean that_present_projectName = true && that.isSetProjectName();
36891 if (this_present_projectName || that_present_projectName) {
36892 if (!(this_present_projectName && that_present_projectName))
36893 return false;
36894 if (!this.projectName.equals(that.projectName))
36895 return false;
36896 }
36897
36898 boolean this_present_plugin = true && this.isSetPlugin();
36899 boolean that_present_plugin = true && that.isSetPlugin();
36900 if (this_present_plugin || that_present_plugin) {
36901 if (!(this_present_plugin && that_present_plugin))
36902 return false;
36903 if (!this.plugin.equals(that.plugin))
36904 return false;
36905 }
36906
36907 return true;
36908 }
36909
36910 @Override
36911 public int hashCode() {
36912 List<Object> list = new ArrayList<Object>();
36913
36914 boolean present_projectName = true && (isSetProjectName());
36915 list.add(present_projectName);
36916 if (present_projectName)
36917 list.add(projectName);
36918
36919 boolean present_plugin = true && (isSetPlugin());
36920 list.add(present_plugin);
36921 if (present_plugin)
36922 list.add(plugin);
36923
36924 return list.hashCode();
36925 }
36926
36927 @Override
36928 public int compareTo(savePlugin_args other) {
36929 if (!getClass().equals(other.getClass())) {
36930 return getClass().getName().compareTo(other.getClass().getName());
36931 }
36932
36933 int lastComparison = 0;
36934
36935 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
36936 if (lastComparison != 0) {
36937 return lastComparison;
36938 }
36939 if (isSetProjectName()) {
36940 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
36941 if (lastComparison != 0) {
36942 return lastComparison;
36943 }
36944 }
36945 lastComparison = Boolean.valueOf(isSetPlugin()).compareTo(other.isSetPlugin());
36946 if (lastComparison != 0) {
36947 return lastComparison;
36948 }
36949 if (isSetPlugin()) {
36950 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plugin, other.plugin);
36951 if (lastComparison != 0) {
36952 return lastComparison;
36953 }
36954 }
36955 return 0;
36956 }
36957
36958 public _Fields fieldForId(int fieldId) {
36959 return _Fields.findByThriftId(fieldId);
36960 }
36961
36962 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36963 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36964 }
36965
36966 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36967 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36968 }
36969
36970 @Override
36971 public String toString() {
36972 StringBuilder sb = new StringBuilder("savePlugin_args(");
36973 boolean first = true;
36974
36975 sb.append("projectName:");
36976 if (this.projectName == null) {
36977 sb.append("null");
36978 } else {
36979 sb.append(this.projectName);
36980 }
36981 first = false;
36982 if (!first) sb.append(", ");
36983 sb.append("plugin:");
36984 if (this.plugin == null) {
36985 sb.append("null");
36986 } else {
36987 sb.append(this.plugin);
36988 }
36989 first = false;
36990 sb.append(")");
36991 return sb.toString();
36992 }
36993
36994 public void validate() throws org.apache.thrift.TException {
36995
36996
36997 if (plugin != null) {
36998 plugin.validate();
36999 }
37000 }
37001
37002 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37003 try {
37004 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37005 } catch (org.apache.thrift.TException te) {
37006 throw new java.io.IOException(te);
37007 }
37008 }
37009
37010 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37011 try {
37012 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37013 } catch (org.apache.thrift.TException te) {
37014 throw new java.io.IOException(te);
37015 }
37016 }
37017
37018 private static class savePlugin_argsStandardSchemeFactory implements SchemeFactory {
37019 public savePlugin_argsStandardScheme getScheme() {
37020 return new savePlugin_argsStandardScheme();
37021 }
37022 }
37023
37024 private static class savePlugin_argsStandardScheme extends StandardScheme<savePlugin_args> {
37025
37026 public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_args struct) throws org.apache.thrift.TException {
37027 org.apache.thrift.protocol.TField schemeField;
37028 iprot.readStructBegin();
37029 while (true)
37030 {
37031 schemeField = iprot.readFieldBegin();
37032 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37033 break;
37034 }
37035 switch (schemeField.id) {
37036 case 1:
37037 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37038 struct.projectName = iprot.readString();
37039 struct.setProjectNameIsSet(true);
37040 } else {
37041 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37042 }
37043 break;
37044 case 2:
37045 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
37046 struct.plugin = new Plugin();
37047 struct.plugin.read(iprot);
37048 struct.setPluginIsSet(true);
37049 } else {
37050 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37051 }
37052 break;
37053 default:
37054 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37055 }
37056 iprot.readFieldEnd();
37057 }
37058 iprot.readStructEnd();
37059
37060
37061 struct.validate();
37062 }
37063
37064 public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_args struct) throws org.apache.thrift.TException {
37065 struct.validate();
37066
37067 oprot.writeStructBegin(STRUCT_DESC);
37068 if (struct.projectName != null) {
37069 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
37070 oprot.writeString(struct.projectName);
37071 oprot.writeFieldEnd();
37072 }
37073 if (struct.plugin != null) {
37074 oprot.writeFieldBegin(PLUGIN_FIELD_DESC);
37075 struct.plugin.write(oprot);
37076 oprot.writeFieldEnd();
37077 }
37078 oprot.writeFieldStop();
37079 oprot.writeStructEnd();
37080 }
37081
37082 }
37083
37084 private static class savePlugin_argsTupleSchemeFactory implements SchemeFactory {
37085 public savePlugin_argsTupleScheme getScheme() {
37086 return new savePlugin_argsTupleScheme();
37087 }
37088 }
37089
37090 private static class savePlugin_argsTupleScheme extends TupleScheme<savePlugin_args> {
37091
37092 @Override
37093 public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException {
37094 TTupleProtocol oprot = (TTupleProtocol) prot;
37095 BitSet optionals = new BitSet();
37096 if (struct.isSetProjectName()) {
37097 optionals.set(0);
37098 }
37099 if (struct.isSetPlugin()) {
37100 optionals.set(1);
37101 }
37102 oprot.writeBitSet(optionals, 2);
37103 if (struct.isSetProjectName()) {
37104 oprot.writeString(struct.projectName);
37105 }
37106 if (struct.isSetPlugin()) {
37107 struct.plugin.write(oprot);
37108 }
37109 }
37110
37111 @Override
37112 public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException {
37113 TTupleProtocol iprot = (TTupleProtocol) prot;
37114 BitSet incoming = iprot.readBitSet(2);
37115 if (incoming.get(0)) {
37116 struct.projectName = iprot.readString();
37117 struct.setProjectNameIsSet(true);
37118 }
37119 if (incoming.get(1)) {
37120 struct.plugin = new Plugin();
37121 struct.plugin.read(iprot);
37122 struct.setPluginIsSet(true);
37123 }
37124 }
37125 }
37126
37127 }
37128
37129 public static class savePlugin_result implements org.apache.thrift.TBase<savePlugin_result, savePlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<savePlugin_result> {
37130 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_result");
37131
37132 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37133
37134 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37135 static {
37136 schemes.put(StandardScheme.class, new savePlugin_resultStandardSchemeFactory());
37137 schemes.put(TupleScheme.class, new savePlugin_resultTupleSchemeFactory());
37138 }
37139
37140 public CentralDogmaException e;
37141
37142
37143 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37144 E((short)1, "e");
37145
37146 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37147
37148 static {
37149 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37150 byName.put(field.getFieldName(), field);
37151 }
37152 }
37153
37154
37155
37156
37157 public static _Fields findByThriftId(int fieldId) {
37158 switch(fieldId) {
37159 case 1:
37160 return E;
37161 default:
37162 return null;
37163 }
37164 }
37165
37166
37167
37168
37169
37170 public static _Fields findByThriftIdOrThrow(int fieldId) {
37171 _Fields fields = findByThriftId(fieldId);
37172 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37173 return fields;
37174 }
37175
37176
37177
37178
37179 public static _Fields findByName(String name) {
37180 return byName.get(name);
37181 }
37182
37183 private final short _thriftId;
37184 private final String _fieldName;
37185
37186 _Fields(short thriftId, String fieldName) {
37187 _thriftId = thriftId;
37188 _fieldName = fieldName;
37189 }
37190
37191 public short getThriftFieldId() {
37192 return _thriftId;
37193 }
37194
37195 public String getFieldName() {
37196 return _fieldName;
37197 }
37198 }
37199
37200
37201 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37202 static {
37203 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37204 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
37205 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37206 metaDataMap = Collections.unmodifiableMap(tmpMap);
37207 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePlugin_result.class, metaDataMap);
37208 }
37209
37210 public savePlugin_result() {
37211 }
37212
37213 public savePlugin_result(
37214 CentralDogmaException e)
37215 {
37216 this();
37217 this.e = e;
37218 }
37219
37220
37221
37222
37223 public savePlugin_result(savePlugin_result other) {
37224 if (other.isSetE()) {
37225 this.e = new CentralDogmaException(other.e);
37226 }
37227 }
37228
37229 public savePlugin_result deepCopy() {
37230 return new savePlugin_result(this);
37231 }
37232
37233 @Override
37234 public void clear() {
37235 this.e = null;
37236 }
37237
37238 public CentralDogmaException getE() {
37239 return this.e;
37240 }
37241
37242 public savePlugin_result setE(CentralDogmaException e) {
37243 this.e = e;
37244 return this;
37245 }
37246
37247 public void unsetE() {
37248 this.e = null;
37249 }
37250
37251
37252 public boolean isSetE() {
37253 return this.e != null;
37254 }
37255
37256 public void setEIsSet(boolean value) {
37257 if (!value) {
37258 this.e = null;
37259 }
37260 }
37261
37262 public void setFieldValue(_Fields field, Object value) {
37263 switch (field) {
37264 case E:
37265 if (value == null) {
37266 unsetE();
37267 } else {
37268 setE((CentralDogmaException)value);
37269 }
37270 break;
37271
37272 }
37273 }
37274
37275 public Object getFieldValue(_Fields field) {
37276 switch (field) {
37277 case E:
37278 return getE();
37279
37280 }
37281 throw new IllegalStateException();
37282 }
37283
37284
37285 public boolean isSet(_Fields field) {
37286 if (field == null) {
37287 throw new IllegalArgumentException();
37288 }
37289
37290 switch (field) {
37291 case E:
37292 return isSetE();
37293 }
37294 throw new IllegalStateException();
37295 }
37296
37297 @Override
37298 public boolean equals(Object that) {
37299 if (that == null)
37300 return false;
37301 if (that instanceof savePlugin_result)
37302 return this.equals((savePlugin_result)that);
37303 return false;
37304 }
37305
37306 public boolean equals(savePlugin_result that) {
37307 if (that == null)
37308 return false;
37309
37310 boolean this_present_e = true && this.isSetE();
37311 boolean that_present_e = true && that.isSetE();
37312 if (this_present_e || that_present_e) {
37313 if (!(this_present_e && that_present_e))
37314 return false;
37315 if (!this.e.equals(that.e))
37316 return false;
37317 }
37318
37319 return true;
37320 }
37321
37322 @Override
37323 public int hashCode() {
37324 List<Object> list = new ArrayList<Object>();
37325
37326 boolean present_e = true && (isSetE());
37327 list.add(present_e);
37328 if (present_e)
37329 list.add(e);
37330
37331 return list.hashCode();
37332 }
37333
37334 @Override
37335 public int compareTo(savePlugin_result other) {
37336 if (!getClass().equals(other.getClass())) {
37337 return getClass().getName().compareTo(other.getClass().getName());
37338 }
37339
37340 int lastComparison = 0;
37341
37342 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
37343 if (lastComparison != 0) {
37344 return lastComparison;
37345 }
37346 if (isSetE()) {
37347 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
37348 if (lastComparison != 0) {
37349 return lastComparison;
37350 }
37351 }
37352 return 0;
37353 }
37354
37355 public _Fields fieldForId(int fieldId) {
37356 return _Fields.findByThriftId(fieldId);
37357 }
37358
37359 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37360 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37361 }
37362
37363 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37364 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37365 }
37366
37367 @Override
37368 public String toString() {
37369 StringBuilder sb = new StringBuilder("savePlugin_result(");
37370 boolean first = true;
37371
37372 sb.append("e:");
37373 if (this.e == null) {
37374 sb.append("null");
37375 } else {
37376 sb.append(this.e);
37377 }
37378 first = false;
37379 sb.append(")");
37380 return sb.toString();
37381 }
37382
37383 public void validate() throws org.apache.thrift.TException {
37384
37385
37386 }
37387
37388 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37389 try {
37390 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37391 } catch (org.apache.thrift.TException te) {
37392 throw new java.io.IOException(te);
37393 }
37394 }
37395
37396 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37397 try {
37398 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37399 } catch (org.apache.thrift.TException te) {
37400 throw new java.io.IOException(te);
37401 }
37402 }
37403
37404 private static class savePlugin_resultStandardSchemeFactory implements SchemeFactory {
37405 public savePlugin_resultStandardScheme getScheme() {
37406 return new savePlugin_resultStandardScheme();
37407 }
37408 }
37409
37410 private static class savePlugin_resultStandardScheme extends StandardScheme<savePlugin_result> {
37411
37412 public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_result struct) throws org.apache.thrift.TException {
37413 org.apache.thrift.protocol.TField schemeField;
37414 iprot.readStructBegin();
37415 while (true)
37416 {
37417 schemeField = iprot.readFieldBegin();
37418 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37419 break;
37420 }
37421 switch (schemeField.id) {
37422 case 1:
37423 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
37424 struct.e = new CentralDogmaException();
37425 struct.e.read(iprot);
37426 struct.setEIsSet(true);
37427 } else {
37428 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37429 }
37430 break;
37431 default:
37432 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37433 }
37434 iprot.readFieldEnd();
37435 }
37436 iprot.readStructEnd();
37437
37438
37439 struct.validate();
37440 }
37441
37442 public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_result struct) throws org.apache.thrift.TException {
37443 struct.validate();
37444
37445 oprot.writeStructBegin(STRUCT_DESC);
37446 if (struct.e != null) {
37447 oprot.writeFieldBegin(E_FIELD_DESC);
37448 struct.e.write(oprot);
37449 oprot.writeFieldEnd();
37450 }
37451 oprot.writeFieldStop();
37452 oprot.writeStructEnd();
37453 }
37454
37455 }
37456
37457 private static class savePlugin_resultTupleSchemeFactory implements SchemeFactory {
37458 public savePlugin_resultTupleScheme getScheme() {
37459 return new savePlugin_resultTupleScheme();
37460 }
37461 }
37462
37463 private static class savePlugin_resultTupleScheme extends TupleScheme<savePlugin_result> {
37464
37465 @Override
37466 public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException {
37467 TTupleProtocol oprot = (TTupleProtocol) prot;
37468 BitSet optionals = new BitSet();
37469 if (struct.isSetE()) {
37470 optionals.set(0);
37471 }
37472 oprot.writeBitSet(optionals, 1);
37473 if (struct.isSetE()) {
37474 struct.e.write(oprot);
37475 }
37476 }
37477
37478 @Override
37479 public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException {
37480 TTupleProtocol iprot = (TTupleProtocol) prot;
37481 BitSet incoming = iprot.readBitSet(1);
37482 if (incoming.get(0)) {
37483 struct.e = new CentralDogmaException();
37484 struct.e.read(iprot);
37485 struct.setEIsSet(true);
37486 }
37487 }
37488 }
37489
37490 }
37491
37492 public static class removePlugin_args implements org.apache.thrift.TBase<removePlugin_args, removePlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<removePlugin_args> {
37493 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_args");
37494
37495 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
37496 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
37497
37498 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37499 static {
37500 schemes.put(StandardScheme.class, new removePlugin_argsStandardSchemeFactory());
37501 schemes.put(TupleScheme.class, new removePlugin_argsTupleSchemeFactory());
37502 }
37503
37504 public String projectName;
37505 public String pluginName;
37506
37507
37508 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37509 PROJECT_NAME((short)1, "projectName"),
37510 PLUGIN_NAME((short)2, "pluginName");
37511
37512 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37513
37514 static {
37515 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37516 byName.put(field.getFieldName(), field);
37517 }
37518 }
37519
37520
37521
37522
37523 public static _Fields findByThriftId(int fieldId) {
37524 switch(fieldId) {
37525 case 1:
37526 return PROJECT_NAME;
37527 case 2:
37528 return PLUGIN_NAME;
37529 default:
37530 return null;
37531 }
37532 }
37533
37534
37535
37536
37537
37538 public static _Fields findByThriftIdOrThrow(int fieldId) {
37539 _Fields fields = findByThriftId(fieldId);
37540 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37541 return fields;
37542 }
37543
37544
37545
37546
37547 public static _Fields findByName(String name) {
37548 return byName.get(name);
37549 }
37550
37551 private final short _thriftId;
37552 private final String _fieldName;
37553
37554 _Fields(short thriftId, String fieldName) {
37555 _thriftId = thriftId;
37556 _fieldName = fieldName;
37557 }
37558
37559 public short getThriftFieldId() {
37560 return _thriftId;
37561 }
37562
37563 public String getFieldName() {
37564 return _fieldName;
37565 }
37566 }
37567
37568
37569 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37570 static {
37571 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37572 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
37573 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37574 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
37575 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
37576 metaDataMap = Collections.unmodifiableMap(tmpMap);
37577 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removePlugin_args.class, metaDataMap);
37578 }
37579
37580 public removePlugin_args() {
37581 }
37582
37583 public removePlugin_args(
37584 String projectName,
37585 String pluginName)
37586 {
37587 this();
37588 this.projectName = projectName;
37589 this.pluginName = pluginName;
37590 }
37591
37592
37593
37594
37595 public removePlugin_args(removePlugin_args other) {
37596 if (other.isSetProjectName()) {
37597 this.projectName = other.projectName;
37598 }
37599 if (other.isSetPluginName()) {
37600 this.pluginName = other.pluginName;
37601 }
37602 }
37603
37604 public removePlugin_args deepCopy() {
37605 return new removePlugin_args(this);
37606 }
37607
37608 @Override
37609 public void clear() {
37610 this.projectName = null;
37611 this.pluginName = null;
37612 }
37613
37614 public String getProjectName() {
37615 return this.projectName;
37616 }
37617
37618 public removePlugin_args setProjectName(String projectName) {
37619 this.projectName = projectName;
37620 return this;
37621 }
37622
37623 public void unsetProjectName() {
37624 this.projectName = null;
37625 }
37626
37627
37628 public boolean isSetProjectName() {
37629 return this.projectName != null;
37630 }
37631
37632 public void setProjectNameIsSet(boolean value) {
37633 if (!value) {
37634 this.projectName = null;
37635 }
37636 }
37637
37638 public String getPluginName() {
37639 return this.pluginName;
37640 }
37641
37642 public removePlugin_args setPluginName(String pluginName) {
37643 this.pluginName = pluginName;
37644 return this;
37645 }
37646
37647 public void unsetPluginName() {
37648 this.pluginName = null;
37649 }
37650
37651
37652 public boolean isSetPluginName() {
37653 return this.pluginName != null;
37654 }
37655
37656 public void setPluginNameIsSet(boolean value) {
37657 if (!value) {
37658 this.pluginName = null;
37659 }
37660 }
37661
37662 public void setFieldValue(_Fields field, Object value) {
37663 switch (field) {
37664 case PROJECT_NAME:
37665 if (value == null) {
37666 unsetProjectName();
37667 } else {
37668 setProjectName((String)value);
37669 }
37670 break;
37671
37672 case PLUGIN_NAME:
37673 if (value == null) {
37674 unsetPluginName();
37675 } else {
37676 setPluginName((String)value);
37677 }
37678 break;
37679
37680 }
37681 }
37682
37683 public Object getFieldValue(_Fields field) {
37684 switch (field) {
37685 case PROJECT_NAME:
37686 return getProjectName();
37687
37688 case PLUGIN_NAME:
37689 return getPluginName();
37690
37691 }
37692 throw new IllegalStateException();
37693 }
37694
37695
37696 public boolean isSet(_Fields field) {
37697 if (field == null) {
37698 throw new IllegalArgumentException();
37699 }
37700
37701 switch (field) {
37702 case PROJECT_NAME:
37703 return isSetProjectName();
37704 case PLUGIN_NAME:
37705 return isSetPluginName();
37706 }
37707 throw new IllegalStateException();
37708 }
37709
37710 @Override
37711 public boolean equals(Object that) {
37712 if (that == null)
37713 return false;
37714 if (that instanceof removePlugin_args)
37715 return this.equals((removePlugin_args)that);
37716 return false;
37717 }
37718
37719 public boolean equals(removePlugin_args that) {
37720 if (that == null)
37721 return false;
37722
37723 boolean this_present_projectName = true && this.isSetProjectName();
37724 boolean that_present_projectName = true && that.isSetProjectName();
37725 if (this_present_projectName || that_present_projectName) {
37726 if (!(this_present_projectName && that_present_projectName))
37727 return false;
37728 if (!this.projectName.equals(that.projectName))
37729 return false;
37730 }
37731
37732 boolean this_present_pluginName = true && this.isSetPluginName();
37733 boolean that_present_pluginName = true && that.isSetPluginName();
37734 if (this_present_pluginName || that_present_pluginName) {
37735 if (!(this_present_pluginName && that_present_pluginName))
37736 return false;
37737 if (!this.pluginName.equals(that.pluginName))
37738 return false;
37739 }
37740
37741 return true;
37742 }
37743
37744 @Override
37745 public int hashCode() {
37746 List<Object> list = new ArrayList<Object>();
37747
37748 boolean present_projectName = true && (isSetProjectName());
37749 list.add(present_projectName);
37750 if (present_projectName)
37751 list.add(projectName);
37752
37753 boolean present_pluginName = true && (isSetPluginName());
37754 list.add(present_pluginName);
37755 if (present_pluginName)
37756 list.add(pluginName);
37757
37758 return list.hashCode();
37759 }
37760
37761 @Override
37762 public int compareTo(removePlugin_args other) {
37763 if (!getClass().equals(other.getClass())) {
37764 return getClass().getName().compareTo(other.getClass().getName());
37765 }
37766
37767 int lastComparison = 0;
37768
37769 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
37770 if (lastComparison != 0) {
37771 return lastComparison;
37772 }
37773 if (isSetProjectName()) {
37774 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
37775 if (lastComparison != 0) {
37776 return lastComparison;
37777 }
37778 }
37779 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
37780 if (lastComparison != 0) {
37781 return lastComparison;
37782 }
37783 if (isSetPluginName()) {
37784 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
37785 if (lastComparison != 0) {
37786 return lastComparison;
37787 }
37788 }
37789 return 0;
37790 }
37791
37792 public _Fields fieldForId(int fieldId) {
37793 return _Fields.findByThriftId(fieldId);
37794 }
37795
37796 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37797 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37798 }
37799
37800 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37801 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37802 }
37803
37804 @Override
37805 public String toString() {
37806 StringBuilder sb = new StringBuilder("removePlugin_args(");
37807 boolean first = true;
37808
37809 sb.append("projectName:");
37810 if (this.projectName == null) {
37811 sb.append("null");
37812 } else {
37813 sb.append(this.projectName);
37814 }
37815 first = false;
37816 if (!first) sb.append(", ");
37817 sb.append("pluginName:");
37818 if (this.pluginName == null) {
37819 sb.append("null");
37820 } else {
37821 sb.append(this.pluginName);
37822 }
37823 first = false;
37824 sb.append(")");
37825 return sb.toString();
37826 }
37827
37828 public void validate() throws org.apache.thrift.TException {
37829
37830
37831 }
37832
37833 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37834 try {
37835 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37836 } catch (org.apache.thrift.TException te) {
37837 throw new java.io.IOException(te);
37838 }
37839 }
37840
37841 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37842 try {
37843 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37844 } catch (org.apache.thrift.TException te) {
37845 throw new java.io.IOException(te);
37846 }
37847 }
37848
37849 private static class removePlugin_argsStandardSchemeFactory implements SchemeFactory {
37850 public removePlugin_argsStandardScheme getScheme() {
37851 return new removePlugin_argsStandardScheme();
37852 }
37853 }
37854
37855 private static class removePlugin_argsStandardScheme extends StandardScheme<removePlugin_args> {
37856
37857 public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_args struct) throws org.apache.thrift.TException {
37858 org.apache.thrift.protocol.TField schemeField;
37859 iprot.readStructBegin();
37860 while (true)
37861 {
37862 schemeField = iprot.readFieldBegin();
37863 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37864 break;
37865 }
37866 switch (schemeField.id) {
37867 case 1:
37868 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37869 struct.projectName = iprot.readString();
37870 struct.setProjectNameIsSet(true);
37871 } else {
37872 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37873 }
37874 break;
37875 case 2:
37876 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37877 struct.pluginName = iprot.readString();
37878 struct.setPluginNameIsSet(true);
37879 } else {
37880 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37881 }
37882 break;
37883 default:
37884 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37885 }
37886 iprot.readFieldEnd();
37887 }
37888 iprot.readStructEnd();
37889
37890
37891 struct.validate();
37892 }
37893
37894 public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_args struct) throws org.apache.thrift.TException {
37895 struct.validate();
37896
37897 oprot.writeStructBegin(STRUCT_DESC);
37898 if (struct.projectName != null) {
37899 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
37900 oprot.writeString(struct.projectName);
37901 oprot.writeFieldEnd();
37902 }
37903 if (struct.pluginName != null) {
37904 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
37905 oprot.writeString(struct.pluginName);
37906 oprot.writeFieldEnd();
37907 }
37908 oprot.writeFieldStop();
37909 oprot.writeStructEnd();
37910 }
37911
37912 }
37913
37914 private static class removePlugin_argsTupleSchemeFactory implements SchemeFactory {
37915 public removePlugin_argsTupleScheme getScheme() {
37916 return new removePlugin_argsTupleScheme();
37917 }
37918 }
37919
37920 private static class removePlugin_argsTupleScheme extends TupleScheme<removePlugin_args> {
37921
37922 @Override
37923 public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException {
37924 TTupleProtocol oprot = (TTupleProtocol) prot;
37925 BitSet optionals = new BitSet();
37926 if (struct.isSetProjectName()) {
37927 optionals.set(0);
37928 }
37929 if (struct.isSetPluginName()) {
37930 optionals.set(1);
37931 }
37932 oprot.writeBitSet(optionals, 2);
37933 if (struct.isSetProjectName()) {
37934 oprot.writeString(struct.projectName);
37935 }
37936 if (struct.isSetPluginName()) {
37937 oprot.writeString(struct.pluginName);
37938 }
37939 }
37940
37941 @Override
37942 public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException {
37943 TTupleProtocol iprot = (TTupleProtocol) prot;
37944 BitSet incoming = iprot.readBitSet(2);
37945 if (incoming.get(0)) {
37946 struct.projectName = iprot.readString();
37947 struct.setProjectNameIsSet(true);
37948 }
37949 if (incoming.get(1)) {
37950 struct.pluginName = iprot.readString();
37951 struct.setPluginNameIsSet(true);
37952 }
37953 }
37954 }
37955
37956 }
37957
37958 public static class removePlugin_result implements org.apache.thrift.TBase<removePlugin_result, removePlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<removePlugin_result> {
37959 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_result");
37960
37961 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37962
37963 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37964 static {
37965 schemes.put(StandardScheme.class, new removePlugin_resultStandardSchemeFactory());
37966 schemes.put(TupleScheme.class, new removePlugin_resultTupleSchemeFactory());
37967 }
37968
37969 public CentralDogmaException e;
37970
37971
37972 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37973 E((short)1, "e");
37974
37975 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37976
37977 static {
37978 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37979 byName.put(field.getFieldName(), field);
37980 }
37981 }
37982
37983
37984
37985
37986 public static _Fields findByThriftId(int fieldId) {
37987 switch(fieldId) {
37988 case 1:
37989 return E;
37990 default:
37991 return null;
37992 }
37993 }
37994
37995
37996
37997
37998
37999 public static _Fields findByThriftIdOrThrow(int fieldId) {
38000 _Fields fields = findByThriftId(fieldId);
38001 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38002 return fields;
38003 }
38004
38005
38006
38007
38008 public static _Fields findByName(String name) {
38009 return byName.get(name);
38010 }
38011
38012 private final short _thriftId;
38013 private final String _fieldName;
38014
38015 _Fields(short thriftId, String fieldName) {
38016 _thriftId = thriftId;
38017 _fieldName = fieldName;
38018 }
38019
38020 public short getThriftFieldId() {
38021 return _thriftId;
38022 }
38023
38024 public String getFieldName() {
38025 return _fieldName;
38026 }
38027 }
38028
38029
38030 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38031 static {
38032 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38033 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
38034 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38035 metaDataMap = Collections.unmodifiableMap(tmpMap);
38036 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removePlugin_result.class, metaDataMap);
38037 }
38038
38039 public removePlugin_result() {
38040 }
38041
38042 public removePlugin_result(
38043 CentralDogmaException e)
38044 {
38045 this();
38046 this.e = e;
38047 }
38048
38049
38050
38051
38052 public removePlugin_result(removePlugin_result other) {
38053 if (other.isSetE()) {
38054 this.e = new CentralDogmaException(other.e);
38055 }
38056 }
38057
38058 public removePlugin_result deepCopy() {
38059 return new removePlugin_result(this);
38060 }
38061
38062 @Override
38063 public void clear() {
38064 this.e = null;
38065 }
38066
38067 public CentralDogmaException getE() {
38068 return this.e;
38069 }
38070
38071 public removePlugin_result setE(CentralDogmaException e) {
38072 this.e = e;
38073 return this;
38074 }
38075
38076 public void unsetE() {
38077 this.e = null;
38078 }
38079
38080
38081 public boolean isSetE() {
38082 return this.e != null;
38083 }
38084
38085 public void setEIsSet(boolean value) {
38086 if (!value) {
38087 this.e = null;
38088 }
38089 }
38090
38091 public void setFieldValue(_Fields field, Object value) {
38092 switch (field) {
38093 case E:
38094 if (value == null) {
38095 unsetE();
38096 } else {
38097 setE((CentralDogmaException)value);
38098 }
38099 break;
38100
38101 }
38102 }
38103
38104 public Object getFieldValue(_Fields field) {
38105 switch (field) {
38106 case E:
38107 return getE();
38108
38109 }
38110 throw new IllegalStateException();
38111 }
38112
38113
38114 public boolean isSet(_Fields field) {
38115 if (field == null) {
38116 throw new IllegalArgumentException();
38117 }
38118
38119 switch (field) {
38120 case E:
38121 return isSetE();
38122 }
38123 throw new IllegalStateException();
38124 }
38125
38126 @Override
38127 public boolean equals(Object that) {
38128 if (that == null)
38129 return false;
38130 if (that instanceof removePlugin_result)
38131 return this.equals((removePlugin_result)that);
38132 return false;
38133 }
38134
38135 public boolean equals(removePlugin_result that) {
38136 if (that == null)
38137 return false;
38138
38139 boolean this_present_e = true && this.isSetE();
38140 boolean that_present_e = true && that.isSetE();
38141 if (this_present_e || that_present_e) {
38142 if (!(this_present_e && that_present_e))
38143 return false;
38144 if (!this.e.equals(that.e))
38145 return false;
38146 }
38147
38148 return true;
38149 }
38150
38151 @Override
38152 public int hashCode() {
38153 List<Object> list = new ArrayList<Object>();
38154
38155 boolean present_e = true && (isSetE());
38156 list.add(present_e);
38157 if (present_e)
38158 list.add(e);
38159
38160 return list.hashCode();
38161 }
38162
38163 @Override
38164 public int compareTo(removePlugin_result other) {
38165 if (!getClass().equals(other.getClass())) {
38166 return getClass().getName().compareTo(other.getClass().getName());
38167 }
38168
38169 int lastComparison = 0;
38170
38171 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
38172 if (lastComparison != 0) {
38173 return lastComparison;
38174 }
38175 if (isSetE()) {
38176 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
38177 if (lastComparison != 0) {
38178 return lastComparison;
38179 }
38180 }
38181 return 0;
38182 }
38183
38184 public _Fields fieldForId(int fieldId) {
38185 return _Fields.findByThriftId(fieldId);
38186 }
38187
38188 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38189 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38190 }
38191
38192 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38193 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38194 }
38195
38196 @Override
38197 public String toString() {
38198 StringBuilder sb = new StringBuilder("removePlugin_result(");
38199 boolean first = true;
38200
38201 sb.append("e:");
38202 if (this.e == null) {
38203 sb.append("null");
38204 } else {
38205 sb.append(this.e);
38206 }
38207 first = false;
38208 sb.append(")");
38209 return sb.toString();
38210 }
38211
38212 public void validate() throws org.apache.thrift.TException {
38213
38214
38215 }
38216
38217 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38218 try {
38219 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38220 } catch (org.apache.thrift.TException te) {
38221 throw new java.io.IOException(te);
38222 }
38223 }
38224
38225 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38226 try {
38227 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38228 } catch (org.apache.thrift.TException te) {
38229 throw new java.io.IOException(te);
38230 }
38231 }
38232
38233 private static class removePlugin_resultStandardSchemeFactory implements SchemeFactory {
38234 public removePlugin_resultStandardScheme getScheme() {
38235 return new removePlugin_resultStandardScheme();
38236 }
38237 }
38238
38239 private static class removePlugin_resultStandardScheme extends StandardScheme<removePlugin_result> {
38240
38241 public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_result struct) throws org.apache.thrift.TException {
38242 org.apache.thrift.protocol.TField schemeField;
38243 iprot.readStructBegin();
38244 while (true)
38245 {
38246 schemeField = iprot.readFieldBegin();
38247 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38248 break;
38249 }
38250 switch (schemeField.id) {
38251 case 1:
38252 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38253 struct.e = new CentralDogmaException();
38254 struct.e.read(iprot);
38255 struct.setEIsSet(true);
38256 } else {
38257 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38258 }
38259 break;
38260 default:
38261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38262 }
38263 iprot.readFieldEnd();
38264 }
38265 iprot.readStructEnd();
38266
38267
38268 struct.validate();
38269 }
38270
38271 public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_result struct) throws org.apache.thrift.TException {
38272 struct.validate();
38273
38274 oprot.writeStructBegin(STRUCT_DESC);
38275 if (struct.e != null) {
38276 oprot.writeFieldBegin(E_FIELD_DESC);
38277 struct.e.write(oprot);
38278 oprot.writeFieldEnd();
38279 }
38280 oprot.writeFieldStop();
38281 oprot.writeStructEnd();
38282 }
38283
38284 }
38285
38286 private static class removePlugin_resultTupleSchemeFactory implements SchemeFactory {
38287 public removePlugin_resultTupleScheme getScheme() {
38288 return new removePlugin_resultTupleScheme();
38289 }
38290 }
38291
38292 private static class removePlugin_resultTupleScheme extends TupleScheme<removePlugin_result> {
38293
38294 @Override
38295 public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException {
38296 TTupleProtocol oprot = (TTupleProtocol) prot;
38297 BitSet optionals = new BitSet();
38298 if (struct.isSetE()) {
38299 optionals.set(0);
38300 }
38301 oprot.writeBitSet(optionals, 1);
38302 if (struct.isSetE()) {
38303 struct.e.write(oprot);
38304 }
38305 }
38306
38307 @Override
38308 public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException {
38309 TTupleProtocol iprot = (TTupleProtocol) prot;
38310 BitSet incoming = iprot.readBitSet(1);
38311 if (incoming.get(0)) {
38312 struct.e = new CentralDogmaException();
38313 struct.e.read(iprot);
38314 struct.setEIsSet(true);
38315 }
38316 }
38317 }
38318
38319 }
38320
38321 public static class listPlugins_args implements org.apache.thrift.TBase<listPlugins_args, listPlugins_args._Fields>, java.io.Serializable, Cloneable, Comparable<listPlugins_args> {
38322 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_args");
38323
38324 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
38325
38326 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38327 static {
38328 schemes.put(StandardScheme.class, new listPlugins_argsStandardSchemeFactory());
38329 schemes.put(TupleScheme.class, new listPlugins_argsTupleSchemeFactory());
38330 }
38331
38332 public String projectName;
38333
38334
38335 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38336 PROJECT_NAME((short)1, "projectName");
38337
38338 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38339
38340 static {
38341 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38342 byName.put(field.getFieldName(), field);
38343 }
38344 }
38345
38346
38347
38348
38349 public static _Fields findByThriftId(int fieldId) {
38350 switch(fieldId) {
38351 case 1:
38352 return PROJECT_NAME;
38353 default:
38354 return null;
38355 }
38356 }
38357
38358
38359
38360
38361
38362 public static _Fields findByThriftIdOrThrow(int fieldId) {
38363 _Fields fields = findByThriftId(fieldId);
38364 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38365 return fields;
38366 }
38367
38368
38369
38370
38371 public static _Fields findByName(String name) {
38372 return byName.get(name);
38373 }
38374
38375 private final short _thriftId;
38376 private final String _fieldName;
38377
38378 _Fields(short thriftId, String fieldName) {
38379 _thriftId = thriftId;
38380 _fieldName = fieldName;
38381 }
38382
38383 public short getThriftFieldId() {
38384 return _thriftId;
38385 }
38386
38387 public String getFieldName() {
38388 return _fieldName;
38389 }
38390 }
38391
38392
38393 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38394 static {
38395 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38396 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
38397 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38398 metaDataMap = Collections.unmodifiableMap(tmpMap);
38399 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPlugins_args.class, metaDataMap);
38400 }
38401
38402 public listPlugins_args() {
38403 }
38404
38405 public listPlugins_args(
38406 String projectName)
38407 {
38408 this();
38409 this.projectName = projectName;
38410 }
38411
38412
38413
38414
38415 public listPlugins_args(listPlugins_args other) {
38416 if (other.isSetProjectName()) {
38417 this.projectName = other.projectName;
38418 }
38419 }
38420
38421 public listPlugins_args deepCopy() {
38422 return new listPlugins_args(this);
38423 }
38424
38425 @Override
38426 public void clear() {
38427 this.projectName = null;
38428 }
38429
38430 public String getProjectName() {
38431 return this.projectName;
38432 }
38433
38434 public listPlugins_args setProjectName(String projectName) {
38435 this.projectName = projectName;
38436 return this;
38437 }
38438
38439 public void unsetProjectName() {
38440 this.projectName = null;
38441 }
38442
38443
38444 public boolean isSetProjectName() {
38445 return this.projectName != null;
38446 }
38447
38448 public void setProjectNameIsSet(boolean value) {
38449 if (!value) {
38450 this.projectName = null;
38451 }
38452 }
38453
38454 public void setFieldValue(_Fields field, Object value) {
38455 switch (field) {
38456 case PROJECT_NAME:
38457 if (value == null) {
38458 unsetProjectName();
38459 } else {
38460 setProjectName((String)value);
38461 }
38462 break;
38463
38464 }
38465 }
38466
38467 public Object getFieldValue(_Fields field) {
38468 switch (field) {
38469 case PROJECT_NAME:
38470 return getProjectName();
38471
38472 }
38473 throw new IllegalStateException();
38474 }
38475
38476
38477 public boolean isSet(_Fields field) {
38478 if (field == null) {
38479 throw new IllegalArgumentException();
38480 }
38481
38482 switch (field) {
38483 case PROJECT_NAME:
38484 return isSetProjectName();
38485 }
38486 throw new IllegalStateException();
38487 }
38488
38489 @Override
38490 public boolean equals(Object that) {
38491 if (that == null)
38492 return false;
38493 if (that instanceof listPlugins_args)
38494 return this.equals((listPlugins_args)that);
38495 return false;
38496 }
38497
38498 public boolean equals(listPlugins_args that) {
38499 if (that == null)
38500 return false;
38501
38502 boolean this_present_projectName = true && this.isSetProjectName();
38503 boolean that_present_projectName = true && that.isSetProjectName();
38504 if (this_present_projectName || that_present_projectName) {
38505 if (!(this_present_projectName && that_present_projectName))
38506 return false;
38507 if (!this.projectName.equals(that.projectName))
38508 return false;
38509 }
38510
38511 return true;
38512 }
38513
38514 @Override
38515 public int hashCode() {
38516 List<Object> list = new ArrayList<Object>();
38517
38518 boolean present_projectName = true && (isSetProjectName());
38519 list.add(present_projectName);
38520 if (present_projectName)
38521 list.add(projectName);
38522
38523 return list.hashCode();
38524 }
38525
38526 @Override
38527 public int compareTo(listPlugins_args other) {
38528 if (!getClass().equals(other.getClass())) {
38529 return getClass().getName().compareTo(other.getClass().getName());
38530 }
38531
38532 int lastComparison = 0;
38533
38534 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
38535 if (lastComparison != 0) {
38536 return lastComparison;
38537 }
38538 if (isSetProjectName()) {
38539 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
38540 if (lastComparison != 0) {
38541 return lastComparison;
38542 }
38543 }
38544 return 0;
38545 }
38546
38547 public _Fields fieldForId(int fieldId) {
38548 return _Fields.findByThriftId(fieldId);
38549 }
38550
38551 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38552 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38553 }
38554
38555 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38556 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38557 }
38558
38559 @Override
38560 public String toString() {
38561 StringBuilder sb = new StringBuilder("listPlugins_args(");
38562 boolean first = true;
38563
38564 sb.append("projectName:");
38565 if (this.projectName == null) {
38566 sb.append("null");
38567 } else {
38568 sb.append(this.projectName);
38569 }
38570 first = false;
38571 sb.append(")");
38572 return sb.toString();
38573 }
38574
38575 public void validate() throws org.apache.thrift.TException {
38576
38577
38578 }
38579
38580 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38581 try {
38582 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38583 } catch (org.apache.thrift.TException te) {
38584 throw new java.io.IOException(te);
38585 }
38586 }
38587
38588 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38589 try {
38590 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38591 } catch (org.apache.thrift.TException te) {
38592 throw new java.io.IOException(te);
38593 }
38594 }
38595
38596 private static class listPlugins_argsStandardSchemeFactory implements SchemeFactory {
38597 public listPlugins_argsStandardScheme getScheme() {
38598 return new listPlugins_argsStandardScheme();
38599 }
38600 }
38601
38602 private static class listPlugins_argsStandardScheme extends StandardScheme<listPlugins_args> {
38603
38604 public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_args struct) throws org.apache.thrift.TException {
38605 org.apache.thrift.protocol.TField schemeField;
38606 iprot.readStructBegin();
38607 while (true)
38608 {
38609 schemeField = iprot.readFieldBegin();
38610 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38611 break;
38612 }
38613 switch (schemeField.id) {
38614 case 1:
38615 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38616 struct.projectName = iprot.readString();
38617 struct.setProjectNameIsSet(true);
38618 } else {
38619 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38620 }
38621 break;
38622 default:
38623 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38624 }
38625 iprot.readFieldEnd();
38626 }
38627 iprot.readStructEnd();
38628
38629
38630 struct.validate();
38631 }
38632
38633 public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_args struct) throws org.apache.thrift.TException {
38634 struct.validate();
38635
38636 oprot.writeStructBegin(STRUCT_DESC);
38637 if (struct.projectName != null) {
38638 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
38639 oprot.writeString(struct.projectName);
38640 oprot.writeFieldEnd();
38641 }
38642 oprot.writeFieldStop();
38643 oprot.writeStructEnd();
38644 }
38645
38646 }
38647
38648 private static class listPlugins_argsTupleSchemeFactory implements SchemeFactory {
38649 public listPlugins_argsTupleScheme getScheme() {
38650 return new listPlugins_argsTupleScheme();
38651 }
38652 }
38653
38654 private static class listPlugins_argsTupleScheme extends TupleScheme<listPlugins_args> {
38655
38656 @Override
38657 public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException {
38658 TTupleProtocol oprot = (TTupleProtocol) prot;
38659 BitSet optionals = new BitSet();
38660 if (struct.isSetProjectName()) {
38661 optionals.set(0);
38662 }
38663 oprot.writeBitSet(optionals, 1);
38664 if (struct.isSetProjectName()) {
38665 oprot.writeString(struct.projectName);
38666 }
38667 }
38668
38669 @Override
38670 public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException {
38671 TTupleProtocol iprot = (TTupleProtocol) prot;
38672 BitSet incoming = iprot.readBitSet(1);
38673 if (incoming.get(0)) {
38674 struct.projectName = iprot.readString();
38675 struct.setProjectNameIsSet(true);
38676 }
38677 }
38678 }
38679
38680 }
38681
38682 public static class listPlugins_result implements org.apache.thrift.TBase<listPlugins_result, listPlugins_result._Fields>, java.io.Serializable, Cloneable, Comparable<listPlugins_result> {
38683 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_result");
38684
38685 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
38686 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38687
38688 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38689 static {
38690 schemes.put(StandardScheme.class, new listPlugins_resultStandardSchemeFactory());
38691 schemes.put(TupleScheme.class, new listPlugins_resultTupleSchemeFactory());
38692 }
38693
38694 public List<Plugin> success;
38695 public CentralDogmaException e;
38696
38697
38698 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38699 SUCCESS((short)0, "success"),
38700 E((short)1, "e");
38701
38702 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38703
38704 static {
38705 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38706 byName.put(field.getFieldName(), field);
38707 }
38708 }
38709
38710
38711
38712
38713 public static _Fields findByThriftId(int fieldId) {
38714 switch(fieldId) {
38715 case 0:
38716 return SUCCESS;
38717 case 1:
38718 return E;
38719 default:
38720 return null;
38721 }
38722 }
38723
38724
38725
38726
38727
38728 public static _Fields findByThriftIdOrThrow(int fieldId) {
38729 _Fields fields = findByThriftId(fieldId);
38730 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38731 return fields;
38732 }
38733
38734
38735
38736
38737 public static _Fields findByName(String name) {
38738 return byName.get(name);
38739 }
38740
38741 private final short _thriftId;
38742 private final String _fieldName;
38743
38744 _Fields(short thriftId, String fieldName) {
38745 _thriftId = thriftId;
38746 _fieldName = fieldName;
38747 }
38748
38749 public short getThriftFieldId() {
38750 return _thriftId;
38751 }
38752
38753 public String getFieldName() {
38754 return _fieldName;
38755 }
38756 }
38757
38758
38759 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38760 static {
38761 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38762 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
38763 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
38764 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class))));
38765 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
38766 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38767 metaDataMap = Collections.unmodifiableMap(tmpMap);
38768 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPlugins_result.class, metaDataMap);
38769 }
38770
38771 public listPlugins_result() {
38772 }
38773
38774 public listPlugins_result(
38775 List<Plugin> success,
38776 CentralDogmaException e)
38777 {
38778 this();
38779 this.success = success;
38780 this.e = e;
38781 }
38782
38783
38784
38785
38786 public listPlugins_result(listPlugins_result other) {
38787 if (other.isSetSuccess()) {
38788 List<Plugin> __this__success = new ArrayList<Plugin>(other.success.size());
38789 for (Plugin other_element : other.success) {
38790 __this__success.add(new Plugin(other_element));
38791 }
38792 this.success = __this__success;
38793 }
38794 if (other.isSetE()) {
38795 this.e = new CentralDogmaException(other.e);
38796 }
38797 }
38798
38799 public listPlugins_result deepCopy() {
38800 return new listPlugins_result(this);
38801 }
38802
38803 @Override
38804 public void clear() {
38805 this.success = null;
38806 this.e = null;
38807 }
38808
38809 public int getSuccessSize() {
38810 return (this.success == null) ? 0 : this.success.size();
38811 }
38812
38813 public java.util.Iterator<Plugin> getSuccessIterator() {
38814 return (this.success == null) ? null : this.success.iterator();
38815 }
38816
38817 public void addToSuccess(Plugin elem) {
38818 if (this.success == null) {
38819 this.success = new ArrayList<Plugin>();
38820 }
38821 this.success.add(elem);
38822 }
38823
38824 public List<Plugin> getSuccess() {
38825 return this.success;
38826 }
38827
38828 public listPlugins_result setSuccess(List<Plugin> success) {
38829 this.success = success;
38830 return this;
38831 }
38832
38833 public void unsetSuccess() {
38834 this.success = null;
38835 }
38836
38837
38838 public boolean isSetSuccess() {
38839 return this.success != null;
38840 }
38841
38842 public void setSuccessIsSet(boolean value) {
38843 if (!value) {
38844 this.success = null;
38845 }
38846 }
38847
38848 public CentralDogmaException getE() {
38849 return this.e;
38850 }
38851
38852 public listPlugins_result setE(CentralDogmaException e) {
38853 this.e = e;
38854 return this;
38855 }
38856
38857 public void unsetE() {
38858 this.e = null;
38859 }
38860
38861
38862 public boolean isSetE() {
38863 return this.e != null;
38864 }
38865
38866 public void setEIsSet(boolean value) {
38867 if (!value) {
38868 this.e = null;
38869 }
38870 }
38871
38872 public void setFieldValue(_Fields field, Object value) {
38873 switch (field) {
38874 case SUCCESS:
38875 if (value == null) {
38876 unsetSuccess();
38877 } else {
38878 setSuccess((List<Plugin>)value);
38879 }
38880 break;
38881
38882 case E:
38883 if (value == null) {
38884 unsetE();
38885 } else {
38886 setE((CentralDogmaException)value);
38887 }
38888 break;
38889
38890 }
38891 }
38892
38893 public Object getFieldValue(_Fields field) {
38894 switch (field) {
38895 case SUCCESS:
38896 return getSuccess();
38897
38898 case E:
38899 return getE();
38900
38901 }
38902 throw new IllegalStateException();
38903 }
38904
38905
38906 public boolean isSet(_Fields field) {
38907 if (field == null) {
38908 throw new IllegalArgumentException();
38909 }
38910
38911 switch (field) {
38912 case SUCCESS:
38913 return isSetSuccess();
38914 case E:
38915 return isSetE();
38916 }
38917 throw new IllegalStateException();
38918 }
38919
38920 @Override
38921 public boolean equals(Object that) {
38922 if (that == null)
38923 return false;
38924 if (that instanceof listPlugins_result)
38925 return this.equals((listPlugins_result)that);
38926 return false;
38927 }
38928
38929 public boolean equals(listPlugins_result that) {
38930 if (that == null)
38931 return false;
38932
38933 boolean this_present_success = true && this.isSetSuccess();
38934 boolean that_present_success = true && that.isSetSuccess();
38935 if (this_present_success || that_present_success) {
38936 if (!(this_present_success && that_present_success))
38937 return false;
38938 if (!this.success.equals(that.success))
38939 return false;
38940 }
38941
38942 boolean this_present_e = true && this.isSetE();
38943 boolean that_present_e = true && that.isSetE();
38944 if (this_present_e || that_present_e) {
38945 if (!(this_present_e && that_present_e))
38946 return false;
38947 if (!this.e.equals(that.e))
38948 return false;
38949 }
38950
38951 return true;
38952 }
38953
38954 @Override
38955 public int hashCode() {
38956 List<Object> list = new ArrayList<Object>();
38957
38958 boolean present_success = true && (isSetSuccess());
38959 list.add(present_success);
38960 if (present_success)
38961 list.add(success);
38962
38963 boolean present_e = true && (isSetE());
38964 list.add(present_e);
38965 if (present_e)
38966 list.add(e);
38967
38968 return list.hashCode();
38969 }
38970
38971 @Override
38972 public int compareTo(listPlugins_result other) {
38973 if (!getClass().equals(other.getClass())) {
38974 return getClass().getName().compareTo(other.getClass().getName());
38975 }
38976
38977 int lastComparison = 0;
38978
38979 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
38980 if (lastComparison != 0) {
38981 return lastComparison;
38982 }
38983 if (isSetSuccess()) {
38984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
38985 if (lastComparison != 0) {
38986 return lastComparison;
38987 }
38988 }
38989 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
38990 if (lastComparison != 0) {
38991 return lastComparison;
38992 }
38993 if (isSetE()) {
38994 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
38995 if (lastComparison != 0) {
38996 return lastComparison;
38997 }
38998 }
38999 return 0;
39000 }
39001
39002 public _Fields fieldForId(int fieldId) {
39003 return _Fields.findByThriftId(fieldId);
39004 }
39005
39006 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39007 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39008 }
39009
39010 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39011 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39012 }
39013
39014 @Override
39015 public String toString() {
39016 StringBuilder sb = new StringBuilder("listPlugins_result(");
39017 boolean first = true;
39018
39019 sb.append("success:");
39020 if (this.success == null) {
39021 sb.append("null");
39022 } else {
39023 sb.append(this.success);
39024 }
39025 first = false;
39026 if (!first) sb.append(", ");
39027 sb.append("e:");
39028 if (this.e == null) {
39029 sb.append("null");
39030 } else {
39031 sb.append(this.e);
39032 }
39033 first = false;
39034 sb.append(")");
39035 return sb.toString();
39036 }
39037
39038 public void validate() throws org.apache.thrift.TException {
39039
39040
39041 }
39042
39043 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39044 try {
39045 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39046 } catch (org.apache.thrift.TException te) {
39047 throw new java.io.IOException(te);
39048 }
39049 }
39050
39051 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39052 try {
39053 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39054 } catch (org.apache.thrift.TException te) {
39055 throw new java.io.IOException(te);
39056 }
39057 }
39058
39059 private static class listPlugins_resultStandardSchemeFactory implements SchemeFactory {
39060 public listPlugins_resultStandardScheme getScheme() {
39061 return new listPlugins_resultStandardScheme();
39062 }
39063 }
39064
39065 private static class listPlugins_resultStandardScheme extends StandardScheme<listPlugins_result> {
39066
39067 public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_result struct) throws org.apache.thrift.TException {
39068 org.apache.thrift.protocol.TField schemeField;
39069 iprot.readStructBegin();
39070 while (true)
39071 {
39072 schemeField = iprot.readFieldBegin();
39073 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39074 break;
39075 }
39076 switch (schemeField.id) {
39077 case 0:
39078 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
39079 {
39080 org.apache.thrift.protocol.TList _list168 = iprot.readListBegin();
39081 struct.success = new ArrayList<Plugin>(_list168.size);
39082 Plugin _elem169;
39083 for (int _i170 = 0; _i170 < _list168.size; ++_i170)
39084 {
39085 _elem169 = new Plugin();
39086 _elem169.read(iprot);
39087 struct.success.add(_elem169);
39088 }
39089 iprot.readListEnd();
39090 }
39091 struct.setSuccessIsSet(true);
39092 } else {
39093 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39094 }
39095 break;
39096 case 1:
39097 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39098 struct.e = new CentralDogmaException();
39099 struct.e.read(iprot);
39100 struct.setEIsSet(true);
39101 } else {
39102 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39103 }
39104 break;
39105 default:
39106 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39107 }
39108 iprot.readFieldEnd();
39109 }
39110 iprot.readStructEnd();
39111
39112
39113 struct.validate();
39114 }
39115
39116 public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_result struct) throws org.apache.thrift.TException {
39117 struct.validate();
39118
39119 oprot.writeStructBegin(STRUCT_DESC);
39120 if (struct.success != null) {
39121 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39122 {
39123 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
39124 for (Plugin _iter171 : struct.success)
39125 {
39126 _iter171.write(oprot);
39127 }
39128 oprot.writeListEnd();
39129 }
39130 oprot.writeFieldEnd();
39131 }
39132 if (struct.e != null) {
39133 oprot.writeFieldBegin(E_FIELD_DESC);
39134 struct.e.write(oprot);
39135 oprot.writeFieldEnd();
39136 }
39137 oprot.writeFieldStop();
39138 oprot.writeStructEnd();
39139 }
39140
39141 }
39142
39143 private static class listPlugins_resultTupleSchemeFactory implements SchemeFactory {
39144 public listPlugins_resultTupleScheme getScheme() {
39145 return new listPlugins_resultTupleScheme();
39146 }
39147 }
39148
39149 private static class listPlugins_resultTupleScheme extends TupleScheme<listPlugins_result> {
39150
39151 @Override
39152 public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException {
39153 TTupleProtocol oprot = (TTupleProtocol) prot;
39154 BitSet optionals = new BitSet();
39155 if (struct.isSetSuccess()) {
39156 optionals.set(0);
39157 }
39158 if (struct.isSetE()) {
39159 optionals.set(1);
39160 }
39161 oprot.writeBitSet(optionals, 2);
39162 if (struct.isSetSuccess()) {
39163 {
39164 oprot.writeI32(struct.success.size());
39165 for (Plugin _iter172 : struct.success)
39166 {
39167 _iter172.write(oprot);
39168 }
39169 }
39170 }
39171 if (struct.isSetE()) {
39172 struct.e.write(oprot);
39173 }
39174 }
39175
39176 @Override
39177 public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException {
39178 TTupleProtocol iprot = (TTupleProtocol) prot;
39179 BitSet incoming = iprot.readBitSet(2);
39180 if (incoming.get(0)) {
39181 {
39182 org.apache.thrift.protocol.TList _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
39183 struct.success = new ArrayList<Plugin>(_list173.size);
39184 Plugin _elem174;
39185 for (int _i175 = 0; _i175 < _list173.size; ++_i175)
39186 {
39187 _elem174 = new Plugin();
39188 _elem174.read(iprot);
39189 struct.success.add(_elem174);
39190 }
39191 }
39192 struct.setSuccessIsSet(true);
39193 }
39194 if (incoming.get(1)) {
39195 struct.e = new CentralDogmaException();
39196 struct.e.read(iprot);
39197 struct.setEIsSet(true);
39198 }
39199 }
39200 }
39201
39202 }
39203
39204 public static class listPluginOperations_args implements org.apache.thrift.TBase<listPluginOperations_args, listPluginOperations_args._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginOperations_args> {
39205 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_args");
39206
39207 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
39208
39209 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39210 static {
39211 schemes.put(StandardScheme.class, new listPluginOperations_argsStandardSchemeFactory());
39212 schemes.put(TupleScheme.class, new listPluginOperations_argsTupleSchemeFactory());
39213 }
39214
39215 public String projectName;
39216
39217
39218 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39219 PROJECT_NAME((short)1, "projectName");
39220
39221 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39222
39223 static {
39224 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39225 byName.put(field.getFieldName(), field);
39226 }
39227 }
39228
39229
39230
39231
39232 public static _Fields findByThriftId(int fieldId) {
39233 switch(fieldId) {
39234 case 1:
39235 return PROJECT_NAME;
39236 default:
39237 return null;
39238 }
39239 }
39240
39241
39242
39243
39244
39245 public static _Fields findByThriftIdOrThrow(int fieldId) {
39246 _Fields fields = findByThriftId(fieldId);
39247 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39248 return fields;
39249 }
39250
39251
39252
39253
39254 public static _Fields findByName(String name) {
39255 return byName.get(name);
39256 }
39257
39258 private final short _thriftId;
39259 private final String _fieldName;
39260
39261 _Fields(short thriftId, String fieldName) {
39262 _thriftId = thriftId;
39263 _fieldName = fieldName;
39264 }
39265
39266 public short getThriftFieldId() {
39267 return _thriftId;
39268 }
39269
39270 public String getFieldName() {
39271 return _fieldName;
39272 }
39273 }
39274
39275
39276 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39277 static {
39278 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39279 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
39280 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
39281 metaDataMap = Collections.unmodifiableMap(tmpMap);
39282 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginOperations_args.class, metaDataMap);
39283 }
39284
39285 public listPluginOperations_args() {
39286 }
39287
39288 public listPluginOperations_args(
39289 String projectName)
39290 {
39291 this();
39292 this.projectName = projectName;
39293 }
39294
39295
39296
39297
39298 public listPluginOperations_args(listPluginOperations_args other) {
39299 if (other.isSetProjectName()) {
39300 this.projectName = other.projectName;
39301 }
39302 }
39303
39304 public listPluginOperations_args deepCopy() {
39305 return new listPluginOperations_args(this);
39306 }
39307
39308 @Override
39309 public void clear() {
39310 this.projectName = null;
39311 }
39312
39313 public String getProjectName() {
39314 return this.projectName;
39315 }
39316
39317 public listPluginOperations_args setProjectName(String projectName) {
39318 this.projectName = projectName;
39319 return this;
39320 }
39321
39322 public void unsetProjectName() {
39323 this.projectName = null;
39324 }
39325
39326
39327 public boolean isSetProjectName() {
39328 return this.projectName != null;
39329 }
39330
39331 public void setProjectNameIsSet(boolean value) {
39332 if (!value) {
39333 this.projectName = null;
39334 }
39335 }
39336
39337 public void setFieldValue(_Fields field, Object value) {
39338 switch (field) {
39339 case PROJECT_NAME:
39340 if (value == null) {
39341 unsetProjectName();
39342 } else {
39343 setProjectName((String)value);
39344 }
39345 break;
39346
39347 }
39348 }
39349
39350 public Object getFieldValue(_Fields field) {
39351 switch (field) {
39352 case PROJECT_NAME:
39353 return getProjectName();
39354
39355 }
39356 throw new IllegalStateException();
39357 }
39358
39359
39360 public boolean isSet(_Fields field) {
39361 if (field == null) {
39362 throw new IllegalArgumentException();
39363 }
39364
39365 switch (field) {
39366 case PROJECT_NAME:
39367 return isSetProjectName();
39368 }
39369 throw new IllegalStateException();
39370 }
39371
39372 @Override
39373 public boolean equals(Object that) {
39374 if (that == null)
39375 return false;
39376 if (that instanceof listPluginOperations_args)
39377 return this.equals((listPluginOperations_args)that);
39378 return false;
39379 }
39380
39381 public boolean equals(listPluginOperations_args that) {
39382 if (that == null)
39383 return false;
39384
39385 boolean this_present_projectName = true && this.isSetProjectName();
39386 boolean that_present_projectName = true && that.isSetProjectName();
39387 if (this_present_projectName || that_present_projectName) {
39388 if (!(this_present_projectName && that_present_projectName))
39389 return false;
39390 if (!this.projectName.equals(that.projectName))
39391 return false;
39392 }
39393
39394 return true;
39395 }
39396
39397 @Override
39398 public int hashCode() {
39399 List<Object> list = new ArrayList<Object>();
39400
39401 boolean present_projectName = true && (isSetProjectName());
39402 list.add(present_projectName);
39403 if (present_projectName)
39404 list.add(projectName);
39405
39406 return list.hashCode();
39407 }
39408
39409 @Override
39410 public int compareTo(listPluginOperations_args other) {
39411 if (!getClass().equals(other.getClass())) {
39412 return getClass().getName().compareTo(other.getClass().getName());
39413 }
39414
39415 int lastComparison = 0;
39416
39417 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
39418 if (lastComparison != 0) {
39419 return lastComparison;
39420 }
39421 if (isSetProjectName()) {
39422 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
39423 if (lastComparison != 0) {
39424 return lastComparison;
39425 }
39426 }
39427 return 0;
39428 }
39429
39430 public _Fields fieldForId(int fieldId) {
39431 return _Fields.findByThriftId(fieldId);
39432 }
39433
39434 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39435 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39436 }
39437
39438 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39439 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39440 }
39441
39442 @Override
39443 public String toString() {
39444 StringBuilder sb = new StringBuilder("listPluginOperations_args(");
39445 boolean first = true;
39446
39447 sb.append("projectName:");
39448 if (this.projectName == null) {
39449 sb.append("null");
39450 } else {
39451 sb.append(this.projectName);
39452 }
39453 first = false;
39454 sb.append(")");
39455 return sb.toString();
39456 }
39457
39458 public void validate() throws org.apache.thrift.TException {
39459
39460
39461 }
39462
39463 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39464 try {
39465 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39466 } catch (org.apache.thrift.TException te) {
39467 throw new java.io.IOException(te);
39468 }
39469 }
39470
39471 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39472 try {
39473 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39474 } catch (org.apache.thrift.TException te) {
39475 throw new java.io.IOException(te);
39476 }
39477 }
39478
39479 private static class listPluginOperations_argsStandardSchemeFactory implements SchemeFactory {
39480 public listPluginOperations_argsStandardScheme getScheme() {
39481 return new listPluginOperations_argsStandardScheme();
39482 }
39483 }
39484
39485 private static class listPluginOperations_argsStandardScheme extends StandardScheme<listPluginOperations_args> {
39486
39487 public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_args struct) throws org.apache.thrift.TException {
39488 org.apache.thrift.protocol.TField schemeField;
39489 iprot.readStructBegin();
39490 while (true)
39491 {
39492 schemeField = iprot.readFieldBegin();
39493 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39494 break;
39495 }
39496 switch (schemeField.id) {
39497 case 1:
39498 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
39499 struct.projectName = iprot.readString();
39500 struct.setProjectNameIsSet(true);
39501 } else {
39502 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39503 }
39504 break;
39505 default:
39506 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39507 }
39508 iprot.readFieldEnd();
39509 }
39510 iprot.readStructEnd();
39511
39512
39513 struct.validate();
39514 }
39515
39516 public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_args struct) throws org.apache.thrift.TException {
39517 struct.validate();
39518
39519 oprot.writeStructBegin(STRUCT_DESC);
39520 if (struct.projectName != null) {
39521 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
39522 oprot.writeString(struct.projectName);
39523 oprot.writeFieldEnd();
39524 }
39525 oprot.writeFieldStop();
39526 oprot.writeStructEnd();
39527 }
39528
39529 }
39530
39531 private static class listPluginOperations_argsTupleSchemeFactory implements SchemeFactory {
39532 public listPluginOperations_argsTupleScheme getScheme() {
39533 return new listPluginOperations_argsTupleScheme();
39534 }
39535 }
39536
39537 private static class listPluginOperations_argsTupleScheme extends TupleScheme<listPluginOperations_args> {
39538
39539 @Override
39540 public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException {
39541 TTupleProtocol oprot = (TTupleProtocol) prot;
39542 BitSet optionals = new BitSet();
39543 if (struct.isSetProjectName()) {
39544 optionals.set(0);
39545 }
39546 oprot.writeBitSet(optionals, 1);
39547 if (struct.isSetProjectName()) {
39548 oprot.writeString(struct.projectName);
39549 }
39550 }
39551
39552 @Override
39553 public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException {
39554 TTupleProtocol iprot = (TTupleProtocol) prot;
39555 BitSet incoming = iprot.readBitSet(1);
39556 if (incoming.get(0)) {
39557 struct.projectName = iprot.readString();
39558 struct.setProjectNameIsSet(true);
39559 }
39560 }
39561 }
39562
39563 }
39564
39565 public static class listPluginOperations_result implements org.apache.thrift.TBase<listPluginOperations_result, listPluginOperations_result._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginOperations_result> {
39566 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_result");
39567
39568 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
39569 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
39570
39571 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39572 static {
39573 schemes.put(StandardScheme.class, new listPluginOperations_resultStandardSchemeFactory());
39574 schemes.put(TupleScheme.class, new listPluginOperations_resultTupleSchemeFactory());
39575 }
39576
39577 public List<PluginOperation> success;
39578 public CentralDogmaException e;
39579
39580
39581 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39582 SUCCESS((short)0, "success"),
39583 E((short)1, "e");
39584
39585 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39586
39587 static {
39588 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39589 byName.put(field.getFieldName(), field);
39590 }
39591 }
39592
39593
39594
39595
39596 public static _Fields findByThriftId(int fieldId) {
39597 switch(fieldId) {
39598 case 0:
39599 return SUCCESS;
39600 case 1:
39601 return E;
39602 default:
39603 return null;
39604 }
39605 }
39606
39607
39608
39609
39610
39611 public static _Fields findByThriftIdOrThrow(int fieldId) {
39612 _Fields fields = findByThriftId(fieldId);
39613 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39614 return fields;
39615 }
39616
39617
39618
39619
39620 public static _Fields findByName(String name) {
39621 return byName.get(name);
39622 }
39623
39624 private final short _thriftId;
39625 private final String _fieldName;
39626
39627 _Fields(short thriftId, String fieldName) {
39628 _thriftId = thriftId;
39629 _fieldName = fieldName;
39630 }
39631
39632 public short getThriftFieldId() {
39633 return _thriftId;
39634 }
39635
39636 public String getFieldName() {
39637 return _fieldName;
39638 }
39639 }
39640
39641
39642 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39643 static {
39644 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39645 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
39646 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
39647 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PluginOperation.class))));
39648 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
39649 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39650 metaDataMap = Collections.unmodifiableMap(tmpMap);
39651 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginOperations_result.class, metaDataMap);
39652 }
39653
39654 public listPluginOperations_result() {
39655 }
39656
39657 public listPluginOperations_result(
39658 List<PluginOperation> success,
39659 CentralDogmaException e)
39660 {
39661 this();
39662 this.success = success;
39663 this.e = e;
39664 }
39665
39666
39667
39668
39669 public listPluginOperations_result(listPluginOperations_result other) {
39670 if (other.isSetSuccess()) {
39671 List<PluginOperation> __this__success = new ArrayList<PluginOperation>(other.success.size());
39672 for (PluginOperation other_element : other.success) {
39673 __this__success.add(new PluginOperation(other_element));
39674 }
39675 this.success = __this__success;
39676 }
39677 if (other.isSetE()) {
39678 this.e = new CentralDogmaException(other.e);
39679 }
39680 }
39681
39682 public listPluginOperations_result deepCopy() {
39683 return new listPluginOperations_result(this);
39684 }
39685
39686 @Override
39687 public void clear() {
39688 this.success = null;
39689 this.e = null;
39690 }
39691
39692 public int getSuccessSize() {
39693 return (this.success == null) ? 0 : this.success.size();
39694 }
39695
39696 public java.util.Iterator<PluginOperation> getSuccessIterator() {
39697 return (this.success == null) ? null : this.success.iterator();
39698 }
39699
39700 public void addToSuccess(PluginOperation elem) {
39701 if (this.success == null) {
39702 this.success = new ArrayList<PluginOperation>();
39703 }
39704 this.success.add(elem);
39705 }
39706
39707 public List<PluginOperation> getSuccess() {
39708 return this.success;
39709 }
39710
39711 public listPluginOperations_result setSuccess(List<PluginOperation> success) {
39712 this.success = success;
39713 return this;
39714 }
39715
39716 public void unsetSuccess() {
39717 this.success = null;
39718 }
39719
39720
39721 public boolean isSetSuccess() {
39722 return this.success != null;
39723 }
39724
39725 public void setSuccessIsSet(boolean value) {
39726 if (!value) {
39727 this.success = null;
39728 }
39729 }
39730
39731 public CentralDogmaException getE() {
39732 return this.e;
39733 }
39734
39735 public listPluginOperations_result setE(CentralDogmaException e) {
39736 this.e = e;
39737 return this;
39738 }
39739
39740 public void unsetE() {
39741 this.e = null;
39742 }
39743
39744
39745 public boolean isSetE() {
39746 return this.e != null;
39747 }
39748
39749 public void setEIsSet(boolean value) {
39750 if (!value) {
39751 this.e = null;
39752 }
39753 }
39754
39755 public void setFieldValue(_Fields field, Object value) {
39756 switch (field) {
39757 case SUCCESS:
39758 if (value == null) {
39759 unsetSuccess();
39760 } else {
39761 setSuccess((List<PluginOperation>)value);
39762 }
39763 break;
39764
39765 case E:
39766 if (value == null) {
39767 unsetE();
39768 } else {
39769 setE((CentralDogmaException)value);
39770 }
39771 break;
39772
39773 }
39774 }
39775
39776 public Object getFieldValue(_Fields field) {
39777 switch (field) {
39778 case SUCCESS:
39779 return getSuccess();
39780
39781 case E:
39782 return getE();
39783
39784 }
39785 throw new IllegalStateException();
39786 }
39787
39788
39789 public boolean isSet(_Fields field) {
39790 if (field == null) {
39791 throw new IllegalArgumentException();
39792 }
39793
39794 switch (field) {
39795 case SUCCESS:
39796 return isSetSuccess();
39797 case E:
39798 return isSetE();
39799 }
39800 throw new IllegalStateException();
39801 }
39802
39803 @Override
39804 public boolean equals(Object that) {
39805 if (that == null)
39806 return false;
39807 if (that instanceof listPluginOperations_result)
39808 return this.equals((listPluginOperations_result)that);
39809 return false;
39810 }
39811
39812 public boolean equals(listPluginOperations_result that) {
39813 if (that == null)
39814 return false;
39815
39816 boolean this_present_success = true && this.isSetSuccess();
39817 boolean that_present_success = true && that.isSetSuccess();
39818 if (this_present_success || that_present_success) {
39819 if (!(this_present_success && that_present_success))
39820 return false;
39821 if (!this.success.equals(that.success))
39822 return false;
39823 }
39824
39825 boolean this_present_e = true && this.isSetE();
39826 boolean that_present_e = true && that.isSetE();
39827 if (this_present_e || that_present_e) {
39828 if (!(this_present_e && that_present_e))
39829 return false;
39830 if (!this.e.equals(that.e))
39831 return false;
39832 }
39833
39834 return true;
39835 }
39836
39837 @Override
39838 public int hashCode() {
39839 List<Object> list = new ArrayList<Object>();
39840
39841 boolean present_success = true && (isSetSuccess());
39842 list.add(present_success);
39843 if (present_success)
39844 list.add(success);
39845
39846 boolean present_e = true && (isSetE());
39847 list.add(present_e);
39848 if (present_e)
39849 list.add(e);
39850
39851 return list.hashCode();
39852 }
39853
39854 @Override
39855 public int compareTo(listPluginOperations_result other) {
39856 if (!getClass().equals(other.getClass())) {
39857 return getClass().getName().compareTo(other.getClass().getName());
39858 }
39859
39860 int lastComparison = 0;
39861
39862 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
39863 if (lastComparison != 0) {
39864 return lastComparison;
39865 }
39866 if (isSetSuccess()) {
39867 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
39868 if (lastComparison != 0) {
39869 return lastComparison;
39870 }
39871 }
39872 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
39873 if (lastComparison != 0) {
39874 return lastComparison;
39875 }
39876 if (isSetE()) {
39877 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
39878 if (lastComparison != 0) {
39879 return lastComparison;
39880 }
39881 }
39882 return 0;
39883 }
39884
39885 public _Fields fieldForId(int fieldId) {
39886 return _Fields.findByThriftId(fieldId);
39887 }
39888
39889 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39890 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39891 }
39892
39893 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39894 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39895 }
39896
39897 @Override
39898 public String toString() {
39899 StringBuilder sb = new StringBuilder("listPluginOperations_result(");
39900 boolean first = true;
39901
39902 sb.append("success:");
39903 if (this.success == null) {
39904 sb.append("null");
39905 } else {
39906 sb.append(this.success);
39907 }
39908 first = false;
39909 if (!first) sb.append(", ");
39910 sb.append("e:");
39911 if (this.e == null) {
39912 sb.append("null");
39913 } else {
39914 sb.append(this.e);
39915 }
39916 first = false;
39917 sb.append(")");
39918 return sb.toString();
39919 }
39920
39921 public void validate() throws org.apache.thrift.TException {
39922
39923
39924 }
39925
39926 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39927 try {
39928 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39929 } catch (org.apache.thrift.TException te) {
39930 throw new java.io.IOException(te);
39931 }
39932 }
39933
39934 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39935 try {
39936 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39937 } catch (org.apache.thrift.TException te) {
39938 throw new java.io.IOException(te);
39939 }
39940 }
39941
39942 private static class listPluginOperations_resultStandardSchemeFactory implements SchemeFactory {
39943 public listPluginOperations_resultStandardScheme getScheme() {
39944 return new listPluginOperations_resultStandardScheme();
39945 }
39946 }
39947
39948 private static class listPluginOperations_resultStandardScheme extends StandardScheme<listPluginOperations_result> {
39949
39950 public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_result struct) throws org.apache.thrift.TException {
39951 org.apache.thrift.protocol.TField schemeField;
39952 iprot.readStructBegin();
39953 while (true)
39954 {
39955 schemeField = iprot.readFieldBegin();
39956 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39957 break;
39958 }
39959 switch (schemeField.id) {
39960 case 0:
39961 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
39962 {
39963 org.apache.thrift.protocol.TList _list176 = iprot.readListBegin();
39964 struct.success = new ArrayList<PluginOperation>(_list176.size);
39965 PluginOperation _elem177;
39966 for (int _i178 = 0; _i178 < _list176.size; ++_i178)
39967 {
39968 _elem177 = new PluginOperation();
39969 _elem177.read(iprot);
39970 struct.success.add(_elem177);
39971 }
39972 iprot.readListEnd();
39973 }
39974 struct.setSuccessIsSet(true);
39975 } else {
39976 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39977 }
39978 break;
39979 case 1:
39980 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39981 struct.e = new CentralDogmaException();
39982 struct.e.read(iprot);
39983 struct.setEIsSet(true);
39984 } else {
39985 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39986 }
39987 break;
39988 default:
39989 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39990 }
39991 iprot.readFieldEnd();
39992 }
39993 iprot.readStructEnd();
39994
39995
39996 struct.validate();
39997 }
39998
39999 public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_result struct) throws org.apache.thrift.TException {
40000 struct.validate();
40001
40002 oprot.writeStructBegin(STRUCT_DESC);
40003 if (struct.success != null) {
40004 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40005 {
40006 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
40007 for (PluginOperation _iter179 : struct.success)
40008 {
40009 _iter179.write(oprot);
40010 }
40011 oprot.writeListEnd();
40012 }
40013 oprot.writeFieldEnd();
40014 }
40015 if (struct.e != null) {
40016 oprot.writeFieldBegin(E_FIELD_DESC);
40017 struct.e.write(oprot);
40018 oprot.writeFieldEnd();
40019 }
40020 oprot.writeFieldStop();
40021 oprot.writeStructEnd();
40022 }
40023
40024 }
40025
40026 private static class listPluginOperations_resultTupleSchemeFactory implements SchemeFactory {
40027 public listPluginOperations_resultTupleScheme getScheme() {
40028 return new listPluginOperations_resultTupleScheme();
40029 }
40030 }
40031
40032 private static class listPluginOperations_resultTupleScheme extends TupleScheme<listPluginOperations_result> {
40033
40034 @Override
40035 public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException {
40036 TTupleProtocol oprot = (TTupleProtocol) prot;
40037 BitSet optionals = new BitSet();
40038 if (struct.isSetSuccess()) {
40039 optionals.set(0);
40040 }
40041 if (struct.isSetE()) {
40042 optionals.set(1);
40043 }
40044 oprot.writeBitSet(optionals, 2);
40045 if (struct.isSetSuccess()) {
40046 {
40047 oprot.writeI32(struct.success.size());
40048 for (PluginOperation _iter180 : struct.success)
40049 {
40050 _iter180.write(oprot);
40051 }
40052 }
40053 }
40054 if (struct.isSetE()) {
40055 struct.e.write(oprot);
40056 }
40057 }
40058
40059 @Override
40060 public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException {
40061 TTupleProtocol iprot = (TTupleProtocol) prot;
40062 BitSet incoming = iprot.readBitSet(2);
40063 if (incoming.get(0)) {
40064 {
40065 org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
40066 struct.success = new ArrayList<PluginOperation>(_list181.size);
40067 PluginOperation _elem182;
40068 for (int _i183 = 0; _i183 < _list181.size; ++_i183)
40069 {
40070 _elem182 = new PluginOperation();
40071 _elem182.read(iprot);
40072 struct.success.add(_elem182);
40073 }
40074 }
40075 struct.setSuccessIsSet(true);
40076 }
40077 if (incoming.get(1)) {
40078 struct.e = new CentralDogmaException();
40079 struct.e.read(iprot);
40080 struct.setEIsSet(true);
40081 }
40082 }
40083 }
40084
40085 }
40086
40087 public static class performPluginOperation_args implements org.apache.thrift.TBase<performPluginOperation_args, performPluginOperation_args._Fields>, java.io.Serializable, Cloneable, Comparable<performPluginOperation_args> {
40088 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_args");
40089
40090 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
40091 private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2);
40092 private static final org.apache.thrift.protocol.TField OPERATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("operationName", org.apache.thrift.protocol.TType.STRING, (short)3);
40093 private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRING, (short)4);
40094
40095 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40096 static {
40097 schemes.put(StandardScheme.class, new performPluginOperation_argsStandardSchemeFactory());
40098 schemes.put(TupleScheme.class, new performPluginOperation_argsTupleSchemeFactory());
40099 }
40100
40101 public String projectName;
40102 public String pluginName;
40103 public String operationName;
40104 public String params;
40105
40106
40107 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40108 PROJECT_NAME((short)1, "projectName"),
40109 PLUGIN_NAME((short)2, "pluginName"),
40110 OPERATION_NAME((short)3, "operationName"),
40111 PARAMS((short)4, "params");
40112
40113 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40114
40115 static {
40116 for (_Fields field : EnumSet.allOf(_Fields.class)) {
40117 byName.put(field.getFieldName(), field);
40118 }
40119 }
40120
40121
40122
40123
40124 public static _Fields findByThriftId(int fieldId) {
40125 switch(fieldId) {
40126 case 1:
40127 return PROJECT_NAME;
40128 case 2:
40129 return PLUGIN_NAME;
40130 case 3:
40131 return OPERATION_NAME;
40132 case 4:
40133 return PARAMS;
40134 default:
40135 return null;
40136 }
40137 }
40138
40139
40140
40141
40142
40143 public static _Fields findByThriftIdOrThrow(int fieldId) {
40144 _Fields fields = findByThriftId(fieldId);
40145 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40146 return fields;
40147 }
40148
40149
40150
40151
40152 public static _Fields findByName(String name) {
40153 return byName.get(name);
40154 }
40155
40156 private final short _thriftId;
40157 private final String _fieldName;
40158
40159 _Fields(short thriftId, String fieldName) {
40160 _thriftId = thriftId;
40161 _fieldName = fieldName;
40162 }
40163
40164 public short getThriftFieldId() {
40165 return _thriftId;
40166 }
40167
40168 public String getFieldName() {
40169 return _fieldName;
40170 }
40171 }
40172
40173
40174 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40175 static {
40176 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40177 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40178 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40179 tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40180 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40181 tmpMap.put(_Fields.OPERATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("operationName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40182 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40183 tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,
40184 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40185 metaDataMap = Collections.unmodifiableMap(tmpMap);
40186 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(performPluginOperation_args.class, metaDataMap);
40187 }
40188
40189 public performPluginOperation_args() {
40190 }
40191
40192 public performPluginOperation_args(
40193 String projectName,
40194 String pluginName,
40195 String operationName,
40196 String params)
40197 {
40198 this();
40199 this.projectName = projectName;
40200 this.pluginName = pluginName;
40201 this.operationName = operationName;
40202 this.params = params;
40203 }
40204
40205
40206
40207
40208 public performPluginOperation_args(performPluginOperation_args other) {
40209 if (other.isSetProjectName()) {
40210 this.projectName = other.projectName;
40211 }
40212 if (other.isSetPluginName()) {
40213 this.pluginName = other.pluginName;
40214 }
40215 if (other.isSetOperationName()) {
40216 this.operationName = other.operationName;
40217 }
40218 if (other.isSetParams()) {
40219 this.params = other.params;
40220 }
40221 }
40222
40223 public performPluginOperation_args deepCopy() {
40224 return new performPluginOperation_args(this);
40225 }
40226
40227 @Override
40228 public void clear() {
40229 this.projectName = null;
40230 this.pluginName = null;
40231 this.operationName = null;
40232 this.params = null;
40233 }
40234
40235 public String getProjectName() {
40236 return this.projectName;
40237 }
40238
40239 public performPluginOperation_args setProjectName(String projectName) {
40240 this.projectName = projectName;
40241 return this;
40242 }
40243
40244 public void unsetProjectName() {
40245 this.projectName = null;
40246 }
40247
40248
40249 public boolean isSetProjectName() {
40250 return this.projectName != null;
40251 }
40252
40253 public void setProjectNameIsSet(boolean value) {
40254 if (!value) {
40255 this.projectName = null;
40256 }
40257 }
40258
40259 public String getPluginName() {
40260 return this.pluginName;
40261 }
40262
40263 public performPluginOperation_args setPluginName(String pluginName) {
40264 this.pluginName = pluginName;
40265 return this;
40266 }
40267
40268 public void unsetPluginName() {
40269 this.pluginName = null;
40270 }
40271
40272
40273 public boolean isSetPluginName() {
40274 return this.pluginName != null;
40275 }
40276
40277 public void setPluginNameIsSet(boolean value) {
40278 if (!value) {
40279 this.pluginName = null;
40280 }
40281 }
40282
40283 public String getOperationName() {
40284 return this.operationName;
40285 }
40286
40287 public performPluginOperation_args setOperationName(String operationName) {
40288 this.operationName = operationName;
40289 return this;
40290 }
40291
40292 public void unsetOperationName() {
40293 this.operationName = null;
40294 }
40295
40296
40297 public boolean isSetOperationName() {
40298 return this.operationName != null;
40299 }
40300
40301 public void setOperationNameIsSet(boolean value) {
40302 if (!value) {
40303 this.operationName = null;
40304 }
40305 }
40306
40307 public String getParams() {
40308 return this.params;
40309 }
40310
40311 public performPluginOperation_args setParams(String params) {
40312 this.params = params;
40313 return this;
40314 }
40315
40316 public void unsetParams() {
40317 this.params = null;
40318 }
40319
40320
40321 public boolean isSetParams() {
40322 return this.params != null;
40323 }
40324
40325 public void setParamsIsSet(boolean value) {
40326 if (!value) {
40327 this.params = null;
40328 }
40329 }
40330
40331 public void setFieldValue(_Fields field, Object value) {
40332 switch (field) {
40333 case PROJECT_NAME:
40334 if (value == null) {
40335 unsetProjectName();
40336 } else {
40337 setProjectName((String)value);
40338 }
40339 break;
40340
40341 case PLUGIN_NAME:
40342 if (value == null) {
40343 unsetPluginName();
40344 } else {
40345 setPluginName((String)value);
40346 }
40347 break;
40348
40349 case OPERATION_NAME:
40350 if (value == null) {
40351 unsetOperationName();
40352 } else {
40353 setOperationName((String)value);
40354 }
40355 break;
40356
40357 case PARAMS:
40358 if (value == null) {
40359 unsetParams();
40360 } else {
40361 setParams((String)value);
40362 }
40363 break;
40364
40365 }
40366 }
40367
40368 public Object getFieldValue(_Fields field) {
40369 switch (field) {
40370 case PROJECT_NAME:
40371 return getProjectName();
40372
40373 case PLUGIN_NAME:
40374 return getPluginName();
40375
40376 case OPERATION_NAME:
40377 return getOperationName();
40378
40379 case PARAMS:
40380 return getParams();
40381
40382 }
40383 throw new IllegalStateException();
40384 }
40385
40386
40387 public boolean isSet(_Fields field) {
40388 if (field == null) {
40389 throw new IllegalArgumentException();
40390 }
40391
40392 switch (field) {
40393 case PROJECT_NAME:
40394 return isSetProjectName();
40395 case PLUGIN_NAME:
40396 return isSetPluginName();
40397 case OPERATION_NAME:
40398 return isSetOperationName();
40399 case PARAMS:
40400 return isSetParams();
40401 }
40402 throw new IllegalStateException();
40403 }
40404
40405 @Override
40406 public boolean equals(Object that) {
40407 if (that == null)
40408 return false;
40409 if (that instanceof performPluginOperation_args)
40410 return this.equals((performPluginOperation_args)that);
40411 return false;
40412 }
40413
40414 public boolean equals(performPluginOperation_args that) {
40415 if (that == null)
40416 return false;
40417
40418 boolean this_present_projectName = true && this.isSetProjectName();
40419 boolean that_present_projectName = true && that.isSetProjectName();
40420 if (this_present_projectName || that_present_projectName) {
40421 if (!(this_present_projectName && that_present_projectName))
40422 return false;
40423 if (!this.projectName.equals(that.projectName))
40424 return false;
40425 }
40426
40427 boolean this_present_pluginName = true && this.isSetPluginName();
40428 boolean that_present_pluginName = true && that.isSetPluginName();
40429 if (this_present_pluginName || that_present_pluginName) {
40430 if (!(this_present_pluginName && that_present_pluginName))
40431 return false;
40432 if (!this.pluginName.equals(that.pluginName))
40433 return false;
40434 }
40435
40436 boolean this_present_operationName = true && this.isSetOperationName();
40437 boolean that_present_operationName = true && that.isSetOperationName();
40438 if (this_present_operationName || that_present_operationName) {
40439 if (!(this_present_operationName && that_present_operationName))
40440 return false;
40441 if (!this.operationName.equals(that.operationName))
40442 return false;
40443 }
40444
40445 boolean this_present_params = true && this.isSetParams();
40446 boolean that_present_params = true && that.isSetParams();
40447 if (this_present_params || that_present_params) {
40448 if (!(this_present_params && that_present_params))
40449 return false;
40450 if (!this.params.equals(that.params))
40451 return false;
40452 }
40453
40454 return true;
40455 }
40456
40457 @Override
40458 public int hashCode() {
40459 List<Object> list = new ArrayList<Object>();
40460
40461 boolean present_projectName = true && (isSetProjectName());
40462 list.add(present_projectName);
40463 if (present_projectName)
40464 list.add(projectName);
40465
40466 boolean present_pluginName = true && (isSetPluginName());
40467 list.add(present_pluginName);
40468 if (present_pluginName)
40469 list.add(pluginName);
40470
40471 boolean present_operationName = true && (isSetOperationName());
40472 list.add(present_operationName);
40473 if (present_operationName)
40474 list.add(operationName);
40475
40476 boolean present_params = true && (isSetParams());
40477 list.add(present_params);
40478 if (present_params)
40479 list.add(params);
40480
40481 return list.hashCode();
40482 }
40483
40484 @Override
40485 public int compareTo(performPluginOperation_args other) {
40486 if (!getClass().equals(other.getClass())) {
40487 return getClass().getName().compareTo(other.getClass().getName());
40488 }
40489
40490 int lastComparison = 0;
40491
40492 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
40493 if (lastComparison != 0) {
40494 return lastComparison;
40495 }
40496 if (isSetProjectName()) {
40497 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
40498 if (lastComparison != 0) {
40499 return lastComparison;
40500 }
40501 }
40502 lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName());
40503 if (lastComparison != 0) {
40504 return lastComparison;
40505 }
40506 if (isSetPluginName()) {
40507 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName);
40508 if (lastComparison != 0) {
40509 return lastComparison;
40510 }
40511 }
40512 lastComparison = Boolean.valueOf(isSetOperationName()).compareTo(other.isSetOperationName());
40513 if (lastComparison != 0) {
40514 return lastComparison;
40515 }
40516 if (isSetOperationName()) {
40517 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationName, other.operationName);
40518 if (lastComparison != 0) {
40519 return lastComparison;
40520 }
40521 }
40522 lastComparison = Boolean.valueOf(isSetParams()).compareTo(other.isSetParams());
40523 if (lastComparison != 0) {
40524 return lastComparison;
40525 }
40526 if (isSetParams()) {
40527 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params);
40528 if (lastComparison != 0) {
40529 return lastComparison;
40530 }
40531 }
40532 return 0;
40533 }
40534
40535 public _Fields fieldForId(int fieldId) {
40536 return _Fields.findByThriftId(fieldId);
40537 }
40538
40539 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40540 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40541 }
40542
40543 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40544 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40545 }
40546
40547 @Override
40548 public String toString() {
40549 StringBuilder sb = new StringBuilder("performPluginOperation_args(");
40550 boolean first = true;
40551
40552 sb.append("projectName:");
40553 if (this.projectName == null) {
40554 sb.append("null");
40555 } else {
40556 sb.append(this.projectName);
40557 }
40558 first = false;
40559 if (!first) sb.append(", ");
40560 sb.append("pluginName:");
40561 if (this.pluginName == null) {
40562 sb.append("null");
40563 } else {
40564 sb.append(this.pluginName);
40565 }
40566 first = false;
40567 if (!first) sb.append(", ");
40568 sb.append("operationName:");
40569 if (this.operationName == null) {
40570 sb.append("null");
40571 } else {
40572 sb.append(this.operationName);
40573 }
40574 first = false;
40575 if (!first) sb.append(", ");
40576 sb.append("params:");
40577 if (this.params == null) {
40578 sb.append("null");
40579 } else {
40580 sb.append(this.params);
40581 }
40582 first = false;
40583 sb.append(")");
40584 return sb.toString();
40585 }
40586
40587 public void validate() throws org.apache.thrift.TException {
40588
40589
40590 }
40591
40592 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40593 try {
40594 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40595 } catch (org.apache.thrift.TException te) {
40596 throw new java.io.IOException(te);
40597 }
40598 }
40599
40600 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40601 try {
40602 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40603 } catch (org.apache.thrift.TException te) {
40604 throw new java.io.IOException(te);
40605 }
40606 }
40607
40608 private static class performPluginOperation_argsStandardSchemeFactory implements SchemeFactory {
40609 public performPluginOperation_argsStandardScheme getScheme() {
40610 return new performPluginOperation_argsStandardScheme();
40611 }
40612 }
40613
40614 private static class performPluginOperation_argsStandardScheme extends StandardScheme<performPluginOperation_args> {
40615
40616 public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_args struct) throws org.apache.thrift.TException {
40617 org.apache.thrift.protocol.TField schemeField;
40618 iprot.readStructBegin();
40619 while (true)
40620 {
40621 schemeField = iprot.readFieldBegin();
40622 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
40623 break;
40624 }
40625 switch (schemeField.id) {
40626 case 1:
40627 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40628 struct.projectName = iprot.readString();
40629 struct.setProjectNameIsSet(true);
40630 } else {
40631 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40632 }
40633 break;
40634 case 2:
40635 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40636 struct.pluginName = iprot.readString();
40637 struct.setPluginNameIsSet(true);
40638 } else {
40639 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40640 }
40641 break;
40642 case 3:
40643 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40644 struct.operationName = iprot.readString();
40645 struct.setOperationNameIsSet(true);
40646 } else {
40647 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40648 }
40649 break;
40650 case 4:
40651 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40652 struct.params = iprot.readString();
40653 struct.setParamsIsSet(true);
40654 } else {
40655 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40656 }
40657 break;
40658 default:
40659 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40660 }
40661 iprot.readFieldEnd();
40662 }
40663 iprot.readStructEnd();
40664
40665
40666 struct.validate();
40667 }
40668
40669 public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_args struct) throws org.apache.thrift.TException {
40670 struct.validate();
40671
40672 oprot.writeStructBegin(STRUCT_DESC);
40673 if (struct.projectName != null) {
40674 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
40675 oprot.writeString(struct.projectName);
40676 oprot.writeFieldEnd();
40677 }
40678 if (struct.pluginName != null) {
40679 oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC);
40680 oprot.writeString(struct.pluginName);
40681 oprot.writeFieldEnd();
40682 }
40683 if (struct.operationName != null) {
40684 oprot.writeFieldBegin(OPERATION_NAME_FIELD_DESC);
40685 oprot.writeString(struct.operationName);
40686 oprot.writeFieldEnd();
40687 }
40688 if (struct.params != null) {
40689 oprot.writeFieldBegin(PARAMS_FIELD_DESC);
40690 oprot.writeString(struct.params);
40691 oprot.writeFieldEnd();
40692 }
40693 oprot.writeFieldStop();
40694 oprot.writeStructEnd();
40695 }
40696
40697 }
40698
40699 private static class performPluginOperation_argsTupleSchemeFactory implements SchemeFactory {
40700 public performPluginOperation_argsTupleScheme getScheme() {
40701 return new performPluginOperation_argsTupleScheme();
40702 }
40703 }
40704
40705 private static class performPluginOperation_argsTupleScheme extends TupleScheme<performPluginOperation_args> {
40706
40707 @Override
40708 public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException {
40709 TTupleProtocol oprot = (TTupleProtocol) prot;
40710 BitSet optionals = new BitSet();
40711 if (struct.isSetProjectName()) {
40712 optionals.set(0);
40713 }
40714 if (struct.isSetPluginName()) {
40715 optionals.set(1);
40716 }
40717 if (struct.isSetOperationName()) {
40718 optionals.set(2);
40719 }
40720 if (struct.isSetParams()) {
40721 optionals.set(3);
40722 }
40723 oprot.writeBitSet(optionals, 4);
40724 if (struct.isSetProjectName()) {
40725 oprot.writeString(struct.projectName);
40726 }
40727 if (struct.isSetPluginName()) {
40728 oprot.writeString(struct.pluginName);
40729 }
40730 if (struct.isSetOperationName()) {
40731 oprot.writeString(struct.operationName);
40732 }
40733 if (struct.isSetParams()) {
40734 oprot.writeString(struct.params);
40735 }
40736 }
40737
40738 @Override
40739 public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException {
40740 TTupleProtocol iprot = (TTupleProtocol) prot;
40741 BitSet incoming = iprot.readBitSet(4);
40742 if (incoming.get(0)) {
40743 struct.projectName = iprot.readString();
40744 struct.setProjectNameIsSet(true);
40745 }
40746 if (incoming.get(1)) {
40747 struct.pluginName = iprot.readString();
40748 struct.setPluginNameIsSet(true);
40749 }
40750 if (incoming.get(2)) {
40751 struct.operationName = iprot.readString();
40752 struct.setOperationNameIsSet(true);
40753 }
40754 if (incoming.get(3)) {
40755 struct.params = iprot.readString();
40756 struct.setParamsIsSet(true);
40757 }
40758 }
40759 }
40760
40761 }
40762
40763 public static class performPluginOperation_result implements org.apache.thrift.TBase<performPluginOperation_result, performPluginOperation_result._Fields>, java.io.Serializable, Cloneable, Comparable<performPluginOperation_result> {
40764 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_result");
40765
40766 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
40767 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
40768
40769 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40770 static {
40771 schemes.put(StandardScheme.class, new performPluginOperation_resultStandardSchemeFactory());
40772 schemes.put(TupleScheme.class, new performPluginOperation_resultTupleSchemeFactory());
40773 }
40774
40775 public String success;
40776 public CentralDogmaException e;
40777
40778
40779 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40780 SUCCESS((short)0, "success"),
40781 E((short)1, "e");
40782
40783 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40784
40785 static {
40786 for (_Fields field : EnumSet.allOf(_Fields.class)) {
40787 byName.put(field.getFieldName(), field);
40788 }
40789 }
40790
40791
40792
40793
40794 public static _Fields findByThriftId(int fieldId) {
40795 switch(fieldId) {
40796 case 0:
40797 return SUCCESS;
40798 case 1:
40799 return E;
40800 default:
40801 return null;
40802 }
40803 }
40804
40805
40806
40807
40808
40809 public static _Fields findByThriftIdOrThrow(int fieldId) {
40810 _Fields fields = findByThriftId(fieldId);
40811 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40812 return fields;
40813 }
40814
40815
40816
40817
40818 public static _Fields findByName(String name) {
40819 return byName.get(name);
40820 }
40821
40822 private final short _thriftId;
40823 private final String _fieldName;
40824
40825 _Fields(short thriftId, String fieldName) {
40826 _thriftId = thriftId;
40827 _fieldName = fieldName;
40828 }
40829
40830 public short getThriftFieldId() {
40831 return _thriftId;
40832 }
40833
40834 public String getFieldName() {
40835 return _fieldName;
40836 }
40837 }
40838
40839
40840 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40841 static {
40842 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40843 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
40844 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40845 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
40846 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40847 metaDataMap = Collections.unmodifiableMap(tmpMap);
40848 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(performPluginOperation_result.class, metaDataMap);
40849 }
40850
40851 public performPluginOperation_result() {
40852 }
40853
40854 public performPluginOperation_result(
40855 String success,
40856 CentralDogmaException e)
40857 {
40858 this();
40859 this.success = success;
40860 this.e = e;
40861 }
40862
40863
40864
40865
40866 public performPluginOperation_result(performPluginOperation_result other) {
40867 if (other.isSetSuccess()) {
40868 this.success = other.success;
40869 }
40870 if (other.isSetE()) {
40871 this.e = new CentralDogmaException(other.e);
40872 }
40873 }
40874
40875 public performPluginOperation_result deepCopy() {
40876 return new performPluginOperation_result(this);
40877 }
40878
40879 @Override
40880 public void clear() {
40881 this.success = null;
40882 this.e = null;
40883 }
40884
40885 public String getSuccess() {
40886 return this.success;
40887 }
40888
40889 public performPluginOperation_result setSuccess(String success) {
40890 this.success = success;
40891 return this;
40892 }
40893
40894 public void unsetSuccess() {
40895 this.success = null;
40896 }
40897
40898
40899 public boolean isSetSuccess() {
40900 return this.success != null;
40901 }
40902
40903 public void setSuccessIsSet(boolean value) {
40904 if (!value) {
40905 this.success = null;
40906 }
40907 }
40908
40909 public CentralDogmaException getE() {
40910 return this.e;
40911 }
40912
40913 public performPluginOperation_result setE(CentralDogmaException e) {
40914 this.e = e;
40915 return this;
40916 }
40917
40918 public void unsetE() {
40919 this.e = null;
40920 }
40921
40922
40923 public boolean isSetE() {
40924 return this.e != null;
40925 }
40926
40927 public void setEIsSet(boolean value) {
40928 if (!value) {
40929 this.e = null;
40930 }
40931 }
40932
40933 public void setFieldValue(_Fields field, Object value) {
40934 switch (field) {
40935 case SUCCESS:
40936 if (value == null) {
40937 unsetSuccess();
40938 } else {
40939 setSuccess((String)value);
40940 }
40941 break;
40942
40943 case E:
40944 if (value == null) {
40945 unsetE();
40946 } else {
40947 setE((CentralDogmaException)value);
40948 }
40949 break;
40950
40951 }
40952 }
40953
40954 public Object getFieldValue(_Fields field) {
40955 switch (field) {
40956 case SUCCESS:
40957 return getSuccess();
40958
40959 case E:
40960 return getE();
40961
40962 }
40963 throw new IllegalStateException();
40964 }
40965
40966
40967 public boolean isSet(_Fields field) {
40968 if (field == null) {
40969 throw new IllegalArgumentException();
40970 }
40971
40972 switch (field) {
40973 case SUCCESS:
40974 return isSetSuccess();
40975 case E:
40976 return isSetE();
40977 }
40978 throw new IllegalStateException();
40979 }
40980
40981 @Override
40982 public boolean equals(Object that) {
40983 if (that == null)
40984 return false;
40985 if (that instanceof performPluginOperation_result)
40986 return this.equals((performPluginOperation_result)that);
40987 return false;
40988 }
40989
40990 public boolean equals(performPluginOperation_result that) {
40991 if (that == null)
40992 return false;
40993
40994 boolean this_present_success = true && this.isSetSuccess();
40995 boolean that_present_success = true && that.isSetSuccess();
40996 if (this_present_success || that_present_success) {
40997 if (!(this_present_success && that_present_success))
40998 return false;
40999 if (!this.success.equals(that.success))
41000 return false;
41001 }
41002
41003 boolean this_present_e = true && this.isSetE();
41004 boolean that_present_e = true && that.isSetE();
41005 if (this_present_e || that_present_e) {
41006 if (!(this_present_e && that_present_e))
41007 return false;
41008 if (!this.e.equals(that.e))
41009 return false;
41010 }
41011
41012 return true;
41013 }
41014
41015 @Override
41016 public int hashCode() {
41017 List<Object> list = new ArrayList<Object>();
41018
41019 boolean present_success = true && (isSetSuccess());
41020 list.add(present_success);
41021 if (present_success)
41022 list.add(success);
41023
41024 boolean present_e = true && (isSetE());
41025 list.add(present_e);
41026 if (present_e)
41027 list.add(e);
41028
41029 return list.hashCode();
41030 }
41031
41032 @Override
41033 public int compareTo(performPluginOperation_result other) {
41034 if (!getClass().equals(other.getClass())) {
41035 return getClass().getName().compareTo(other.getClass().getName());
41036 }
41037
41038 int lastComparison = 0;
41039
41040 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
41041 if (lastComparison != 0) {
41042 return lastComparison;
41043 }
41044 if (isSetSuccess()) {
41045 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
41046 if (lastComparison != 0) {
41047 return lastComparison;
41048 }
41049 }
41050 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
41051 if (lastComparison != 0) {
41052 return lastComparison;
41053 }
41054 if (isSetE()) {
41055 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
41056 if (lastComparison != 0) {
41057 return lastComparison;
41058 }
41059 }
41060 return 0;
41061 }
41062
41063 public _Fields fieldForId(int fieldId) {
41064 return _Fields.findByThriftId(fieldId);
41065 }
41066
41067 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41068 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41069 }
41070
41071 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41072 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41073 }
41074
41075 @Override
41076 public String toString() {
41077 StringBuilder sb = new StringBuilder("performPluginOperation_result(");
41078 boolean first = true;
41079
41080 sb.append("success:");
41081 if (this.success == null) {
41082 sb.append("null");
41083 } else {
41084 sb.append(this.success);
41085 }
41086 first = false;
41087 if (!first) sb.append(", ");
41088 sb.append("e:");
41089 if (this.e == null) {
41090 sb.append("null");
41091 } else {
41092 sb.append(this.e);
41093 }
41094 first = false;
41095 sb.append(")");
41096 return sb.toString();
41097 }
41098
41099 public void validate() throws org.apache.thrift.TException {
41100
41101
41102 }
41103
41104 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41105 try {
41106 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41107 } catch (org.apache.thrift.TException te) {
41108 throw new java.io.IOException(te);
41109 }
41110 }
41111
41112 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41113 try {
41114 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41115 } catch (org.apache.thrift.TException te) {
41116 throw new java.io.IOException(te);
41117 }
41118 }
41119
41120 private static class performPluginOperation_resultStandardSchemeFactory implements SchemeFactory {
41121 public performPluginOperation_resultStandardScheme getScheme() {
41122 return new performPluginOperation_resultStandardScheme();
41123 }
41124 }
41125
41126 private static class performPluginOperation_resultStandardScheme extends StandardScheme<performPluginOperation_result> {
41127
41128 public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_result struct) throws org.apache.thrift.TException {
41129 org.apache.thrift.protocol.TField schemeField;
41130 iprot.readStructBegin();
41131 while (true)
41132 {
41133 schemeField = iprot.readFieldBegin();
41134 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
41135 break;
41136 }
41137 switch (schemeField.id) {
41138 case 0:
41139 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
41140 struct.success = iprot.readString();
41141 struct.setSuccessIsSet(true);
41142 } else {
41143 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41144 }
41145 break;
41146 case 1:
41147 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41148 struct.e = new CentralDogmaException();
41149 struct.e.read(iprot);
41150 struct.setEIsSet(true);
41151 } else {
41152 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41153 }
41154 break;
41155 default:
41156 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41157 }
41158 iprot.readFieldEnd();
41159 }
41160 iprot.readStructEnd();
41161
41162
41163 struct.validate();
41164 }
41165
41166 public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_result struct) throws org.apache.thrift.TException {
41167 struct.validate();
41168
41169 oprot.writeStructBegin(STRUCT_DESC);
41170 if (struct.success != null) {
41171 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41172 oprot.writeString(struct.success);
41173 oprot.writeFieldEnd();
41174 }
41175 if (struct.e != null) {
41176 oprot.writeFieldBegin(E_FIELD_DESC);
41177 struct.e.write(oprot);
41178 oprot.writeFieldEnd();
41179 }
41180 oprot.writeFieldStop();
41181 oprot.writeStructEnd();
41182 }
41183
41184 }
41185
41186 private static class performPluginOperation_resultTupleSchemeFactory implements SchemeFactory {
41187 public performPluginOperation_resultTupleScheme getScheme() {
41188 return new performPluginOperation_resultTupleScheme();
41189 }
41190 }
41191
41192 private static class performPluginOperation_resultTupleScheme extends TupleScheme<performPluginOperation_result> {
41193
41194 @Override
41195 public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException {
41196 TTupleProtocol oprot = (TTupleProtocol) prot;
41197 BitSet optionals = new BitSet();
41198 if (struct.isSetSuccess()) {
41199 optionals.set(0);
41200 }
41201 if (struct.isSetE()) {
41202 optionals.set(1);
41203 }
41204 oprot.writeBitSet(optionals, 2);
41205 if (struct.isSetSuccess()) {
41206 oprot.writeString(struct.success);
41207 }
41208 if (struct.isSetE()) {
41209 struct.e.write(oprot);
41210 }
41211 }
41212
41213 @Override
41214 public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException {
41215 TTupleProtocol iprot = (TTupleProtocol) prot;
41216 BitSet incoming = iprot.readBitSet(2);
41217 if (incoming.get(0)) {
41218 struct.success = iprot.readString();
41219 struct.setSuccessIsSet(true);
41220 }
41221 if (incoming.get(1)) {
41222 struct.e = new CentralDogmaException();
41223 struct.e.read(iprot);
41224 struct.setEIsSet(true);
41225 }
41226 }
41227 }
41228
41229 }
41230
41231 public static class queryByNamedQuery_args implements org.apache.thrift.TBase<queryByNamedQuery_args, queryByNamedQuery_args._Fields>, java.io.Serializable, Cloneable, Comparable<queryByNamedQuery_args> {
41232 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_args");
41233
41234 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
41235 private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRING, (short)2);
41236 private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3);
41237
41238 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41239 static {
41240 schemes.put(StandardScheme.class, new queryByNamedQuery_argsStandardSchemeFactory());
41241 schemes.put(TupleScheme.class, new queryByNamedQuery_argsTupleSchemeFactory());
41242 }
41243
41244 public String projectName;
41245 public String namedQuery;
41246 public Revision revision;
41247
41248
41249 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41250 PROJECT_NAME((short)1, "projectName"),
41251 NAMED_QUERY((short)2, "namedQuery"),
41252 REVISION((short)3, "revision");
41253
41254 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41255
41256 static {
41257 for (_Fields field : EnumSet.allOf(_Fields.class)) {
41258 byName.put(field.getFieldName(), field);
41259 }
41260 }
41261
41262
41263
41264
41265 public static _Fields findByThriftId(int fieldId) {
41266 switch(fieldId) {
41267 case 1:
41268 return PROJECT_NAME;
41269 case 2:
41270 return NAMED_QUERY;
41271 case 3:
41272 return REVISION;
41273 default:
41274 return null;
41275 }
41276 }
41277
41278
41279
41280
41281
41282 public static _Fields findByThriftIdOrThrow(int fieldId) {
41283 _Fields fields = findByThriftId(fieldId);
41284 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41285 return fields;
41286 }
41287
41288
41289
41290
41291 public static _Fields findByName(String name) {
41292 return byName.get(name);
41293 }
41294
41295 private final short _thriftId;
41296 private final String _fieldName;
41297
41298 _Fields(short thriftId, String fieldName) {
41299 _thriftId = thriftId;
41300 _fieldName = fieldName;
41301 }
41302
41303 public short getThriftFieldId() {
41304 return _thriftId;
41305 }
41306
41307 public String getFieldName() {
41308 return _fieldName;
41309 }
41310 }
41311
41312
41313 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41314 static {
41315 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41316 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
41317 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
41318 tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT,
41319 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
41320 tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT,
41321 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class)));
41322 metaDataMap = Collections.unmodifiableMap(tmpMap);
41323 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryByNamedQuery_args.class, metaDataMap);
41324 }
41325
41326 public queryByNamedQuery_args() {
41327 }
41328
41329 public queryByNamedQuery_args(
41330 String projectName,
41331 String namedQuery,
41332 Revision revision)
41333 {
41334 this();
41335 this.projectName = projectName;
41336 this.namedQuery = namedQuery;
41337 this.revision = revision;
41338 }
41339
41340
41341
41342
41343 public queryByNamedQuery_args(queryByNamedQuery_args other) {
41344 if (other.isSetProjectName()) {
41345 this.projectName = other.projectName;
41346 }
41347 if (other.isSetNamedQuery()) {
41348 this.namedQuery = other.namedQuery;
41349 }
41350 if (other.isSetRevision()) {
41351 this.revision = new Revision(other.revision);
41352 }
41353 }
41354
41355 public queryByNamedQuery_args deepCopy() {
41356 return new queryByNamedQuery_args(this);
41357 }
41358
41359 @Override
41360 public void clear() {
41361 this.projectName = null;
41362 this.namedQuery = null;
41363 this.revision = null;
41364 }
41365
41366 public String getProjectName() {
41367 return this.projectName;
41368 }
41369
41370 public queryByNamedQuery_args setProjectName(String projectName) {
41371 this.projectName = projectName;
41372 return this;
41373 }
41374
41375 public void unsetProjectName() {
41376 this.projectName = null;
41377 }
41378
41379
41380 public boolean isSetProjectName() {
41381 return this.projectName != null;
41382 }
41383
41384 public void setProjectNameIsSet(boolean value) {
41385 if (!value) {
41386 this.projectName = null;
41387 }
41388 }
41389
41390 public String getNamedQuery() {
41391 return this.namedQuery;
41392 }
41393
41394 public queryByNamedQuery_args setNamedQuery(String namedQuery) {
41395 this.namedQuery = namedQuery;
41396 return this;
41397 }
41398
41399 public void unsetNamedQuery() {
41400 this.namedQuery = null;
41401 }
41402
41403
41404 public boolean isSetNamedQuery() {
41405 return this.namedQuery != null;
41406 }
41407
41408 public void setNamedQueryIsSet(boolean value) {
41409 if (!value) {
41410 this.namedQuery = null;
41411 }
41412 }
41413
41414 public Revision getRevision() {
41415 return this.revision;
41416 }
41417
41418 public queryByNamedQuery_args setRevision(Revision revision) {
41419 this.revision = revision;
41420 return this;
41421 }
41422
41423 public void unsetRevision() {
41424 this.revision = null;
41425 }
41426
41427
41428 public boolean isSetRevision() {
41429 return this.revision != null;
41430 }
41431
41432 public void setRevisionIsSet(boolean value) {
41433 if (!value) {
41434 this.revision = null;
41435 }
41436 }
41437
41438 public void setFieldValue(_Fields field, Object value) {
41439 switch (field) {
41440 case PROJECT_NAME:
41441 if (value == null) {
41442 unsetProjectName();
41443 } else {
41444 setProjectName((String)value);
41445 }
41446 break;
41447
41448 case NAMED_QUERY:
41449 if (value == null) {
41450 unsetNamedQuery();
41451 } else {
41452 setNamedQuery((String)value);
41453 }
41454 break;
41455
41456 case REVISION:
41457 if (value == null) {
41458 unsetRevision();
41459 } else {
41460 setRevision((Revision)value);
41461 }
41462 break;
41463
41464 }
41465 }
41466
41467 public Object getFieldValue(_Fields field) {
41468 switch (field) {
41469 case PROJECT_NAME:
41470 return getProjectName();
41471
41472 case NAMED_QUERY:
41473 return getNamedQuery();
41474
41475 case REVISION:
41476 return getRevision();
41477
41478 }
41479 throw new IllegalStateException();
41480 }
41481
41482
41483 public boolean isSet(_Fields field) {
41484 if (field == null) {
41485 throw new IllegalArgumentException();
41486 }
41487
41488 switch (field) {
41489 case PROJECT_NAME:
41490 return isSetProjectName();
41491 case NAMED_QUERY:
41492 return isSetNamedQuery();
41493 case REVISION:
41494 return isSetRevision();
41495 }
41496 throw new IllegalStateException();
41497 }
41498
41499 @Override
41500 public boolean equals(Object that) {
41501 if (that == null)
41502 return false;
41503 if (that instanceof queryByNamedQuery_args)
41504 return this.equals((queryByNamedQuery_args)that);
41505 return false;
41506 }
41507
41508 public boolean equals(queryByNamedQuery_args that) {
41509 if (that == null)
41510 return false;
41511
41512 boolean this_present_projectName = true && this.isSetProjectName();
41513 boolean that_present_projectName = true && that.isSetProjectName();
41514 if (this_present_projectName || that_present_projectName) {
41515 if (!(this_present_projectName && that_present_projectName))
41516 return false;
41517 if (!this.projectName.equals(that.projectName))
41518 return false;
41519 }
41520
41521 boolean this_present_namedQuery = true && this.isSetNamedQuery();
41522 boolean that_present_namedQuery = true && that.isSetNamedQuery();
41523 if (this_present_namedQuery || that_present_namedQuery) {
41524 if (!(this_present_namedQuery && that_present_namedQuery))
41525 return false;
41526 if (!this.namedQuery.equals(that.namedQuery))
41527 return false;
41528 }
41529
41530 boolean this_present_revision = true && this.isSetRevision();
41531 boolean that_present_revision = true && that.isSetRevision();
41532 if (this_present_revision || that_present_revision) {
41533 if (!(this_present_revision && that_present_revision))
41534 return false;
41535 if (!this.revision.equals(that.revision))
41536 return false;
41537 }
41538
41539 return true;
41540 }
41541
41542 @Override
41543 public int hashCode() {
41544 List<Object> list = new ArrayList<Object>();
41545
41546 boolean present_projectName = true && (isSetProjectName());
41547 list.add(present_projectName);
41548 if (present_projectName)
41549 list.add(projectName);
41550
41551 boolean present_namedQuery = true && (isSetNamedQuery());
41552 list.add(present_namedQuery);
41553 if (present_namedQuery)
41554 list.add(namedQuery);
41555
41556 boolean present_revision = true && (isSetRevision());
41557 list.add(present_revision);
41558 if (present_revision)
41559 list.add(revision);
41560
41561 return list.hashCode();
41562 }
41563
41564 @Override
41565 public int compareTo(queryByNamedQuery_args other) {
41566 if (!getClass().equals(other.getClass())) {
41567 return getClass().getName().compareTo(other.getClass().getName());
41568 }
41569
41570 int lastComparison = 0;
41571
41572 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
41573 if (lastComparison != 0) {
41574 return lastComparison;
41575 }
41576 if (isSetProjectName()) {
41577 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
41578 if (lastComparison != 0) {
41579 return lastComparison;
41580 }
41581 }
41582 lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery());
41583 if (lastComparison != 0) {
41584 return lastComparison;
41585 }
41586 if (isSetNamedQuery()) {
41587 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery);
41588 if (lastComparison != 0) {
41589 return lastComparison;
41590 }
41591 }
41592 lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
41593 if (lastComparison != 0) {
41594 return lastComparison;
41595 }
41596 if (isSetRevision()) {
41597 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
41598 if (lastComparison != 0) {
41599 return lastComparison;
41600 }
41601 }
41602 return 0;
41603 }
41604
41605 public _Fields fieldForId(int fieldId) {
41606 return _Fields.findByThriftId(fieldId);
41607 }
41608
41609 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41610 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41611 }
41612
41613 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41614 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41615 }
41616
41617 @Override
41618 public String toString() {
41619 StringBuilder sb = new StringBuilder("queryByNamedQuery_args(");
41620 boolean first = true;
41621
41622 sb.append("projectName:");
41623 if (this.projectName == null) {
41624 sb.append("null");
41625 } else {
41626 sb.append(this.projectName);
41627 }
41628 first = false;
41629 if (!first) sb.append(", ");
41630 sb.append("namedQuery:");
41631 if (this.namedQuery == null) {
41632 sb.append("null");
41633 } else {
41634 sb.append(this.namedQuery);
41635 }
41636 first = false;
41637 if (!first) sb.append(", ");
41638 sb.append("revision:");
41639 if (this.revision == null) {
41640 sb.append("null");
41641 } else {
41642 sb.append(this.revision);
41643 }
41644 first = false;
41645 sb.append(")");
41646 return sb.toString();
41647 }
41648
41649 public void validate() throws org.apache.thrift.TException {
41650
41651
41652 if (revision != null) {
41653 revision.validate();
41654 }
41655 }
41656
41657 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41658 try {
41659 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41660 } catch (org.apache.thrift.TException te) {
41661 throw new java.io.IOException(te);
41662 }
41663 }
41664
41665 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41666 try {
41667 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41668 } catch (org.apache.thrift.TException te) {
41669 throw new java.io.IOException(te);
41670 }
41671 }
41672
41673 private static class queryByNamedQuery_argsStandardSchemeFactory implements SchemeFactory {
41674 public queryByNamedQuery_argsStandardScheme getScheme() {
41675 return new queryByNamedQuery_argsStandardScheme();
41676 }
41677 }
41678
41679 private static class queryByNamedQuery_argsStandardScheme extends StandardScheme<queryByNamedQuery_args> {
41680
41681 public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
41682 org.apache.thrift.protocol.TField schemeField;
41683 iprot.readStructBegin();
41684 while (true)
41685 {
41686 schemeField = iprot.readFieldBegin();
41687 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
41688 break;
41689 }
41690 switch (schemeField.id) {
41691 case 1:
41692 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
41693 struct.projectName = iprot.readString();
41694 struct.setProjectNameIsSet(true);
41695 } else {
41696 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41697 }
41698 break;
41699 case 2:
41700 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
41701 struct.namedQuery = iprot.readString();
41702 struct.setNamedQueryIsSet(true);
41703 } else {
41704 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41705 }
41706 break;
41707 case 3:
41708 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41709 struct.revision = new Revision();
41710 struct.revision.read(iprot);
41711 struct.setRevisionIsSet(true);
41712 } else {
41713 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41714 }
41715 break;
41716 default:
41717 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41718 }
41719 iprot.readFieldEnd();
41720 }
41721 iprot.readStructEnd();
41722
41723
41724 struct.validate();
41725 }
41726
41727 public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
41728 struct.validate();
41729
41730 oprot.writeStructBegin(STRUCT_DESC);
41731 if (struct.projectName != null) {
41732 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
41733 oprot.writeString(struct.projectName);
41734 oprot.writeFieldEnd();
41735 }
41736 if (struct.namedQuery != null) {
41737 oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC);
41738 oprot.writeString(struct.namedQuery);
41739 oprot.writeFieldEnd();
41740 }
41741 if (struct.revision != null) {
41742 oprot.writeFieldBegin(REVISION_FIELD_DESC);
41743 struct.revision.write(oprot);
41744 oprot.writeFieldEnd();
41745 }
41746 oprot.writeFieldStop();
41747 oprot.writeStructEnd();
41748 }
41749
41750 }
41751
41752 private static class queryByNamedQuery_argsTupleSchemeFactory implements SchemeFactory {
41753 public queryByNamedQuery_argsTupleScheme getScheme() {
41754 return new queryByNamedQuery_argsTupleScheme();
41755 }
41756 }
41757
41758 private static class queryByNamedQuery_argsTupleScheme extends TupleScheme<queryByNamedQuery_args> {
41759
41760 @Override
41761 public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
41762 TTupleProtocol oprot = (TTupleProtocol) prot;
41763 BitSet optionals = new BitSet();
41764 if (struct.isSetProjectName()) {
41765 optionals.set(0);
41766 }
41767 if (struct.isSetNamedQuery()) {
41768 optionals.set(1);
41769 }
41770 if (struct.isSetRevision()) {
41771 optionals.set(2);
41772 }
41773 oprot.writeBitSet(optionals, 3);
41774 if (struct.isSetProjectName()) {
41775 oprot.writeString(struct.projectName);
41776 }
41777 if (struct.isSetNamedQuery()) {
41778 oprot.writeString(struct.namedQuery);
41779 }
41780 if (struct.isSetRevision()) {
41781 struct.revision.write(oprot);
41782 }
41783 }
41784
41785 @Override
41786 public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException {
41787 TTupleProtocol iprot = (TTupleProtocol) prot;
41788 BitSet incoming = iprot.readBitSet(3);
41789 if (incoming.get(0)) {
41790 struct.projectName = iprot.readString();
41791 struct.setProjectNameIsSet(true);
41792 }
41793 if (incoming.get(1)) {
41794 struct.namedQuery = iprot.readString();
41795 struct.setNamedQueryIsSet(true);
41796 }
41797 if (incoming.get(2)) {
41798 struct.revision = new Revision();
41799 struct.revision.read(iprot);
41800 struct.setRevisionIsSet(true);
41801 }
41802 }
41803 }
41804
41805 }
41806
41807 public static class queryByNamedQuery_result implements org.apache.thrift.TBase<queryByNamedQuery_result, queryByNamedQuery_result._Fields>, java.io.Serializable, Cloneable, Comparable<queryByNamedQuery_result> {
41808 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_result");
41809
41810 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
41811 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
41812
41813 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41814 static {
41815 schemes.put(StandardScheme.class, new queryByNamedQuery_resultStandardSchemeFactory());
41816 schemes.put(TupleScheme.class, new queryByNamedQuery_resultTupleSchemeFactory());
41817 }
41818
41819 public String success;
41820 public CentralDogmaException e;
41821
41822
41823 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41824 SUCCESS((short)0, "success"),
41825 E((short)1, "e");
41826
41827 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41828
41829 static {
41830 for (_Fields field : EnumSet.allOf(_Fields.class)) {
41831 byName.put(field.getFieldName(), field);
41832 }
41833 }
41834
41835
41836
41837
41838 public static _Fields findByThriftId(int fieldId) {
41839 switch(fieldId) {
41840 case 0:
41841 return SUCCESS;
41842 case 1:
41843 return E;
41844 default:
41845 return null;
41846 }
41847 }
41848
41849
41850
41851
41852
41853 public static _Fields findByThriftIdOrThrow(int fieldId) {
41854 _Fields fields = findByThriftId(fieldId);
41855 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41856 return fields;
41857 }
41858
41859
41860
41861
41862 public static _Fields findByName(String name) {
41863 return byName.get(name);
41864 }
41865
41866 private final short _thriftId;
41867 private final String _fieldName;
41868
41869 _Fields(short thriftId, String fieldName) {
41870 _thriftId = thriftId;
41871 _fieldName = fieldName;
41872 }
41873
41874 public short getThriftFieldId() {
41875 return _thriftId;
41876 }
41877
41878 public String getFieldName() {
41879 return _fieldName;
41880 }
41881 }
41882
41883
41884 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41885 static {
41886 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41887 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
41888 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
41889 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
41890 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41891 metaDataMap = Collections.unmodifiableMap(tmpMap);
41892 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryByNamedQuery_result.class, metaDataMap);
41893 }
41894
41895 public queryByNamedQuery_result() {
41896 }
41897
41898 public queryByNamedQuery_result(
41899 String success,
41900 CentralDogmaException e)
41901 {
41902 this();
41903 this.success = success;
41904 this.e = e;
41905 }
41906
41907
41908
41909
41910 public queryByNamedQuery_result(queryByNamedQuery_result other) {
41911 if (other.isSetSuccess()) {
41912 this.success = other.success;
41913 }
41914 if (other.isSetE()) {
41915 this.e = new CentralDogmaException(other.e);
41916 }
41917 }
41918
41919 public queryByNamedQuery_result deepCopy() {
41920 return new queryByNamedQuery_result(this);
41921 }
41922
41923 @Override
41924 public void clear() {
41925 this.success = null;
41926 this.e = null;
41927 }
41928
41929 public String getSuccess() {
41930 return this.success;
41931 }
41932
41933 public queryByNamedQuery_result setSuccess(String success) {
41934 this.success = success;
41935 return this;
41936 }
41937
41938 public void unsetSuccess() {
41939 this.success = null;
41940 }
41941
41942
41943 public boolean isSetSuccess() {
41944 return this.success != null;
41945 }
41946
41947 public void setSuccessIsSet(boolean value) {
41948 if (!value) {
41949 this.success = null;
41950 }
41951 }
41952
41953 public CentralDogmaException getE() {
41954 return this.e;
41955 }
41956
41957 public queryByNamedQuery_result setE(CentralDogmaException e) {
41958 this.e = e;
41959 return this;
41960 }
41961
41962 public void unsetE() {
41963 this.e = null;
41964 }
41965
41966
41967 public boolean isSetE() {
41968 return this.e != null;
41969 }
41970
41971 public void setEIsSet(boolean value) {
41972 if (!value) {
41973 this.e = null;
41974 }
41975 }
41976
41977 public void setFieldValue(_Fields field, Object value) {
41978 switch (field) {
41979 case SUCCESS:
41980 if (value == null) {
41981 unsetSuccess();
41982 } else {
41983 setSuccess((String)value);
41984 }
41985 break;
41986
41987 case E:
41988 if (value == null) {
41989 unsetE();
41990 } else {
41991 setE((CentralDogmaException)value);
41992 }
41993 break;
41994
41995 }
41996 }
41997
41998 public Object getFieldValue(_Fields field) {
41999 switch (field) {
42000 case SUCCESS:
42001 return getSuccess();
42002
42003 case E:
42004 return getE();
42005
42006 }
42007 throw new IllegalStateException();
42008 }
42009
42010
42011 public boolean isSet(_Fields field) {
42012 if (field == null) {
42013 throw new IllegalArgumentException();
42014 }
42015
42016 switch (field) {
42017 case SUCCESS:
42018 return isSetSuccess();
42019 case E:
42020 return isSetE();
42021 }
42022 throw new IllegalStateException();
42023 }
42024
42025 @Override
42026 public boolean equals(Object that) {
42027 if (that == null)
42028 return false;
42029 if (that instanceof queryByNamedQuery_result)
42030 return this.equals((queryByNamedQuery_result)that);
42031 return false;
42032 }
42033
42034 public boolean equals(queryByNamedQuery_result that) {
42035 if (that == null)
42036 return false;
42037
42038 boolean this_present_success = true && this.isSetSuccess();
42039 boolean that_present_success = true && that.isSetSuccess();
42040 if (this_present_success || that_present_success) {
42041 if (!(this_present_success && that_present_success))
42042 return false;
42043 if (!this.success.equals(that.success))
42044 return false;
42045 }
42046
42047 boolean this_present_e = true && this.isSetE();
42048 boolean that_present_e = true && that.isSetE();
42049 if (this_present_e || that_present_e) {
42050 if (!(this_present_e && that_present_e))
42051 return false;
42052 if (!this.e.equals(that.e))
42053 return false;
42054 }
42055
42056 return true;
42057 }
42058
42059 @Override
42060 public int hashCode() {
42061 List<Object> list = new ArrayList<Object>();
42062
42063 boolean present_success = true && (isSetSuccess());
42064 list.add(present_success);
42065 if (present_success)
42066 list.add(success);
42067
42068 boolean present_e = true && (isSetE());
42069 list.add(present_e);
42070 if (present_e)
42071 list.add(e);
42072
42073 return list.hashCode();
42074 }
42075
42076 @Override
42077 public int compareTo(queryByNamedQuery_result other) {
42078 if (!getClass().equals(other.getClass())) {
42079 return getClass().getName().compareTo(other.getClass().getName());
42080 }
42081
42082 int lastComparison = 0;
42083
42084 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
42085 if (lastComparison != 0) {
42086 return lastComparison;
42087 }
42088 if (isSetSuccess()) {
42089 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
42090 if (lastComparison != 0) {
42091 return lastComparison;
42092 }
42093 }
42094 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
42095 if (lastComparison != 0) {
42096 return lastComparison;
42097 }
42098 if (isSetE()) {
42099 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
42100 if (lastComparison != 0) {
42101 return lastComparison;
42102 }
42103 }
42104 return 0;
42105 }
42106
42107 public _Fields fieldForId(int fieldId) {
42108 return _Fields.findByThriftId(fieldId);
42109 }
42110
42111 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42112 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
42113 }
42114
42115 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42116 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
42117 }
42118
42119 @Override
42120 public String toString() {
42121 StringBuilder sb = new StringBuilder("queryByNamedQuery_result(");
42122 boolean first = true;
42123
42124 sb.append("success:");
42125 if (this.success == null) {
42126 sb.append("null");
42127 } else {
42128 sb.append(this.success);
42129 }
42130 first = false;
42131 if (!first) sb.append(", ");
42132 sb.append("e:");
42133 if (this.e == null) {
42134 sb.append("null");
42135 } else {
42136 sb.append(this.e);
42137 }
42138 first = false;
42139 sb.append(")");
42140 return sb.toString();
42141 }
42142
42143 public void validate() throws org.apache.thrift.TException {
42144
42145
42146 }
42147
42148 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42149 try {
42150 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42151 } catch (org.apache.thrift.TException te) {
42152 throw new java.io.IOException(te);
42153 }
42154 }
42155
42156 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42157 try {
42158 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42159 } catch (org.apache.thrift.TException te) {
42160 throw new java.io.IOException(te);
42161 }
42162 }
42163
42164 private static class queryByNamedQuery_resultStandardSchemeFactory implements SchemeFactory {
42165 public queryByNamedQuery_resultStandardScheme getScheme() {
42166 return new queryByNamedQuery_resultStandardScheme();
42167 }
42168 }
42169
42170 private static class queryByNamedQuery_resultStandardScheme extends StandardScheme<queryByNamedQuery_result> {
42171
42172 public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
42173 org.apache.thrift.protocol.TField schemeField;
42174 iprot.readStructBegin();
42175 while (true)
42176 {
42177 schemeField = iprot.readFieldBegin();
42178 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
42179 break;
42180 }
42181 switch (schemeField.id) {
42182 case 0:
42183 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
42184 struct.success = iprot.readString();
42185 struct.setSuccessIsSet(true);
42186 } else {
42187 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42188 }
42189 break;
42190 case 1:
42191 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
42192 struct.e = new CentralDogmaException();
42193 struct.e.read(iprot);
42194 struct.setEIsSet(true);
42195 } else {
42196 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42197 }
42198 break;
42199 default:
42200 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42201 }
42202 iprot.readFieldEnd();
42203 }
42204 iprot.readStructEnd();
42205
42206
42207 struct.validate();
42208 }
42209
42210 public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
42211 struct.validate();
42212
42213 oprot.writeStructBegin(STRUCT_DESC);
42214 if (struct.success != null) {
42215 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42216 oprot.writeString(struct.success);
42217 oprot.writeFieldEnd();
42218 }
42219 if (struct.e != null) {
42220 oprot.writeFieldBegin(E_FIELD_DESC);
42221 struct.e.write(oprot);
42222 oprot.writeFieldEnd();
42223 }
42224 oprot.writeFieldStop();
42225 oprot.writeStructEnd();
42226 }
42227
42228 }
42229
42230 private static class queryByNamedQuery_resultTupleSchemeFactory implements SchemeFactory {
42231 public queryByNamedQuery_resultTupleScheme getScheme() {
42232 return new queryByNamedQuery_resultTupleScheme();
42233 }
42234 }
42235
42236 private static class queryByNamedQuery_resultTupleScheme extends TupleScheme<queryByNamedQuery_result> {
42237
42238 @Override
42239 public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
42240 TTupleProtocol oprot = (TTupleProtocol) prot;
42241 BitSet optionals = new BitSet();
42242 if (struct.isSetSuccess()) {
42243 optionals.set(0);
42244 }
42245 if (struct.isSetE()) {
42246 optionals.set(1);
42247 }
42248 oprot.writeBitSet(optionals, 2);
42249 if (struct.isSetSuccess()) {
42250 oprot.writeString(struct.success);
42251 }
42252 if (struct.isSetE()) {
42253 struct.e.write(oprot);
42254 }
42255 }
42256
42257 @Override
42258 public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException {
42259 TTupleProtocol iprot = (TTupleProtocol) prot;
42260 BitSet incoming = iprot.readBitSet(2);
42261 if (incoming.get(0)) {
42262 struct.success = iprot.readString();
42263 struct.setSuccessIsSet(true);
42264 }
42265 if (incoming.get(1)) {
42266 struct.e = new CentralDogmaException();
42267 struct.e.read(iprot);
42268 struct.setEIsSet(true);
42269 }
42270 }
42271 }
42272
42273 }
42274
42275 public static class listSubscribers_args implements org.apache.thrift.TBase<listSubscribers_args, listSubscribers_args._Fields>, java.io.Serializable, Cloneable, Comparable<listSubscribers_args> {
42276 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_args");
42277
42278 private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1);
42279 private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2);
42280 private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)3);
42281
42282 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
42283 static {
42284 schemes.put(StandardScheme.class, new listSubscribers_argsStandardSchemeFactory());
42285 schemes.put(TupleScheme.class, new listSubscribers_argsTupleSchemeFactory());
42286 }
42287
42288 public String projectName;
42289 public String repositoryName;
42290 public String path;
42291
42292
42293 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42294 PROJECT_NAME((short)1, "projectName"),
42295 REPOSITORY_NAME((short)2, "repositoryName"),
42296 PATH((short)3, "path");
42297
42298 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42299
42300 static {
42301 for (_Fields field : EnumSet.allOf(_Fields.class)) {
42302 byName.put(field.getFieldName(), field);
42303 }
42304 }
42305
42306
42307
42308
42309 public static _Fields findByThriftId(int fieldId) {
42310 switch(fieldId) {
42311 case 1:
42312 return PROJECT_NAME;
42313 case 2:
42314 return REPOSITORY_NAME;
42315 case 3:
42316 return PATH;
42317 default:
42318 return null;
42319 }
42320 }
42321
42322
42323
42324
42325
42326 public static _Fields findByThriftIdOrThrow(int fieldId) {
42327 _Fields fields = findByThriftId(fieldId);
42328 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42329 return fields;
42330 }
42331
42332
42333
42334
42335 public static _Fields findByName(String name) {
42336 return byName.get(name);
42337 }
42338
42339 private final short _thriftId;
42340 private final String _fieldName;
42341
42342 _Fields(short thriftId, String fieldName) {
42343 _thriftId = thriftId;
42344 _fieldName = fieldName;
42345 }
42346
42347 public short getThriftFieldId() {
42348 return _thriftId;
42349 }
42350
42351 public String getFieldName() {
42352 return _fieldName;
42353 }
42354 }
42355
42356
42357 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42358 static {
42359 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42360 tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT,
42361 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
42362 tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT,
42363 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
42364 tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT,
42365 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "EntryPath")));
42366 metaDataMap = Collections.unmodifiableMap(tmpMap);
42367 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSubscribers_args.class, metaDataMap);
42368 }
42369
42370 public listSubscribers_args() {
42371 }
42372
42373 public listSubscribers_args(
42374 String projectName,
42375 String repositoryName,
42376 String path)
42377 {
42378 this();
42379 this.projectName = projectName;
42380 this.repositoryName = repositoryName;
42381 this.path = path;
42382 }
42383
42384
42385
42386
42387 public listSubscribers_args(listSubscribers_args other) {
42388 if (other.isSetProjectName()) {
42389 this.projectName = other.projectName;
42390 }
42391 if (other.isSetRepositoryName()) {
42392 this.repositoryName = other.repositoryName;
42393 }
42394 if (other.isSetPath()) {
42395 this.path = other.path;
42396 }
42397 }
42398
42399 public listSubscribers_args deepCopy() {
42400 return new listSubscribers_args(this);
42401 }
42402
42403 @Override
42404 public void clear() {
42405 this.projectName = null;
42406 this.repositoryName = null;
42407 this.path = null;
42408 }
42409
42410 public String getProjectName() {
42411 return this.projectName;
42412 }
42413
42414 public listSubscribers_args setProjectName(String projectName) {
42415 this.projectName = projectName;
42416 return this;
42417 }
42418
42419 public void unsetProjectName() {
42420 this.projectName = null;
42421 }
42422
42423
42424 public boolean isSetProjectName() {
42425 return this.projectName != null;
42426 }
42427
42428 public void setProjectNameIsSet(boolean value) {
42429 if (!value) {
42430 this.projectName = null;
42431 }
42432 }
42433
42434 public String getRepositoryName() {
42435 return this.repositoryName;
42436 }
42437
42438 public listSubscribers_args setRepositoryName(String repositoryName) {
42439 this.repositoryName = repositoryName;
42440 return this;
42441 }
42442
42443 public void unsetRepositoryName() {
42444 this.repositoryName = null;
42445 }
42446
42447
42448 public boolean isSetRepositoryName() {
42449 return this.repositoryName != null;
42450 }
42451
42452 public void setRepositoryNameIsSet(boolean value) {
42453 if (!value) {
42454 this.repositoryName = null;
42455 }
42456 }
42457
42458 public String getPath() {
42459 return this.path;
42460 }
42461
42462 public listSubscribers_args setPath(String path) {
42463 this.path = path;
42464 return this;
42465 }
42466
42467 public void unsetPath() {
42468 this.path = null;
42469 }
42470
42471
42472 public boolean isSetPath() {
42473 return this.path != null;
42474 }
42475
42476 public void setPathIsSet(boolean value) {
42477 if (!value) {
42478 this.path = null;
42479 }
42480 }
42481
42482 public void setFieldValue(_Fields field, Object value) {
42483 switch (field) {
42484 case PROJECT_NAME:
42485 if (value == null) {
42486 unsetProjectName();
42487 } else {
42488 setProjectName((String)value);
42489 }
42490 break;
42491
42492 case REPOSITORY_NAME:
42493 if (value == null) {
42494 unsetRepositoryName();
42495 } else {
42496 setRepositoryName((String)value);
42497 }
42498 break;
42499
42500 case PATH:
42501 if (value == null) {
42502 unsetPath();
42503 } else {
42504 setPath((String)value);
42505 }
42506 break;
42507
42508 }
42509 }
42510
42511 public Object getFieldValue(_Fields field) {
42512 switch (field) {
42513 case PROJECT_NAME:
42514 return getProjectName();
42515
42516 case REPOSITORY_NAME:
42517 return getRepositoryName();
42518
42519 case PATH:
42520 return getPath();
42521
42522 }
42523 throw new IllegalStateException();
42524 }
42525
42526
42527 public boolean isSet(_Fields field) {
42528 if (field == null) {
42529 throw new IllegalArgumentException();
42530 }
42531
42532 switch (field) {
42533 case PROJECT_NAME:
42534 return isSetProjectName();
42535 case REPOSITORY_NAME:
42536 return isSetRepositoryName();
42537 case PATH:
42538 return isSetPath();
42539 }
42540 throw new IllegalStateException();
42541 }
42542
42543 @Override
42544 public boolean equals(Object that) {
42545 if (that == null)
42546 return false;
42547 if (that instanceof listSubscribers_args)
42548 return this.equals((listSubscribers_args)that);
42549 return false;
42550 }
42551
42552 public boolean equals(listSubscribers_args that) {
42553 if (that == null)
42554 return false;
42555
42556 boolean this_present_projectName = true && this.isSetProjectName();
42557 boolean that_present_projectName = true && that.isSetProjectName();
42558 if (this_present_projectName || that_present_projectName) {
42559 if (!(this_present_projectName && that_present_projectName))
42560 return false;
42561 if (!this.projectName.equals(that.projectName))
42562 return false;
42563 }
42564
42565 boolean this_present_repositoryName = true && this.isSetRepositoryName();
42566 boolean that_present_repositoryName = true && that.isSetRepositoryName();
42567 if (this_present_repositoryName || that_present_repositoryName) {
42568 if (!(this_present_repositoryName && that_present_repositoryName))
42569 return false;
42570 if (!this.repositoryName.equals(that.repositoryName))
42571 return false;
42572 }
42573
42574 boolean this_present_path = true && this.isSetPath();
42575 boolean that_present_path = true && that.isSetPath();
42576 if (this_present_path || that_present_path) {
42577 if (!(this_present_path && that_present_path))
42578 return false;
42579 if (!this.path.equals(that.path))
42580 return false;
42581 }
42582
42583 return true;
42584 }
42585
42586 @Override
42587 public int hashCode() {
42588 List<Object> list = new ArrayList<Object>();
42589
42590 boolean present_projectName = true && (isSetProjectName());
42591 list.add(present_projectName);
42592 if (present_projectName)
42593 list.add(projectName);
42594
42595 boolean present_repositoryName = true && (isSetRepositoryName());
42596 list.add(present_repositoryName);
42597 if (present_repositoryName)
42598 list.add(repositoryName);
42599
42600 boolean present_path = true && (isSetPath());
42601 list.add(present_path);
42602 if (present_path)
42603 list.add(path);
42604
42605 return list.hashCode();
42606 }
42607
42608 @Override
42609 public int compareTo(listSubscribers_args other) {
42610 if (!getClass().equals(other.getClass())) {
42611 return getClass().getName().compareTo(other.getClass().getName());
42612 }
42613
42614 int lastComparison = 0;
42615
42616 lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName());
42617 if (lastComparison != 0) {
42618 return lastComparison;
42619 }
42620 if (isSetProjectName()) {
42621 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName);
42622 if (lastComparison != 0) {
42623 return lastComparison;
42624 }
42625 }
42626 lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName());
42627 if (lastComparison != 0) {
42628 return lastComparison;
42629 }
42630 if (isSetRepositoryName()) {
42631 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName);
42632 if (lastComparison != 0) {
42633 return lastComparison;
42634 }
42635 }
42636 lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath());
42637 if (lastComparison != 0) {
42638 return lastComparison;
42639 }
42640 if (isSetPath()) {
42641 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
42642 if (lastComparison != 0) {
42643 return lastComparison;
42644 }
42645 }
42646 return 0;
42647 }
42648
42649 public _Fields fieldForId(int fieldId) {
42650 return _Fields.findByThriftId(fieldId);
42651 }
42652
42653 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42654 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
42655 }
42656
42657 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42658 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
42659 }
42660
42661 @Override
42662 public String toString() {
42663 StringBuilder sb = new StringBuilder("listSubscribers_args(");
42664 boolean first = true;
42665
42666 sb.append("projectName:");
42667 if (this.projectName == null) {
42668 sb.append("null");
42669 } else {
42670 sb.append(this.projectName);
42671 }
42672 first = false;
42673 if (!first) sb.append(", ");
42674 sb.append("repositoryName:");
42675 if (this.repositoryName == null) {
42676 sb.append("null");
42677 } else {
42678 sb.append(this.repositoryName);
42679 }
42680 first = false;
42681 if (!first) sb.append(", ");
42682 sb.append("path:");
42683 if (this.path == null) {
42684 sb.append("null");
42685 } else {
42686 sb.append(this.path);
42687 }
42688 first = false;
42689 sb.append(")");
42690 return sb.toString();
42691 }
42692
42693 public void validate() throws org.apache.thrift.TException {
42694
42695
42696 }
42697
42698 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42699 try {
42700 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42701 } catch (org.apache.thrift.TException te) {
42702 throw new java.io.IOException(te);
42703 }
42704 }
42705
42706 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42707 try {
42708 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42709 } catch (org.apache.thrift.TException te) {
42710 throw new java.io.IOException(te);
42711 }
42712 }
42713
42714 private static class listSubscribers_argsStandardSchemeFactory implements SchemeFactory {
42715 public listSubscribers_argsStandardScheme getScheme() {
42716 return new listSubscribers_argsStandardScheme();
42717 }
42718 }
42719
42720 private static class listSubscribers_argsStandardScheme extends StandardScheme<listSubscribers_args> {
42721
42722 public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_args struct) throws org.apache.thrift.TException {
42723 org.apache.thrift.protocol.TField schemeField;
42724 iprot.readStructBegin();
42725 while (true)
42726 {
42727 schemeField = iprot.readFieldBegin();
42728 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
42729 break;
42730 }
42731 switch (schemeField.id) {
42732 case 1:
42733 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
42734 struct.projectName = iprot.readString();
42735 struct.setProjectNameIsSet(true);
42736 } else {
42737 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42738 }
42739 break;
42740 case 2:
42741 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
42742 struct.repositoryName = iprot.readString();
42743 struct.setRepositoryNameIsSet(true);
42744 } else {
42745 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42746 }
42747 break;
42748 case 3:
42749 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
42750 struct.path = iprot.readString();
42751 struct.setPathIsSet(true);
42752 } else {
42753 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42754 }
42755 break;
42756 default:
42757 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42758 }
42759 iprot.readFieldEnd();
42760 }
42761 iprot.readStructEnd();
42762
42763
42764 struct.validate();
42765 }
42766
42767 public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_args struct) throws org.apache.thrift.TException {
42768 struct.validate();
42769
42770 oprot.writeStructBegin(STRUCT_DESC);
42771 if (struct.projectName != null) {
42772 oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC);
42773 oprot.writeString(struct.projectName);
42774 oprot.writeFieldEnd();
42775 }
42776 if (struct.repositoryName != null) {
42777 oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC);
42778 oprot.writeString(struct.repositoryName);
42779 oprot.writeFieldEnd();
42780 }
42781 if (struct.path != null) {
42782 oprot.writeFieldBegin(PATH_FIELD_DESC);
42783 oprot.writeString(struct.path);
42784 oprot.writeFieldEnd();
42785 }
42786 oprot.writeFieldStop();
42787 oprot.writeStructEnd();
42788 }
42789
42790 }
42791
42792 private static class listSubscribers_argsTupleSchemeFactory implements SchemeFactory {
42793 public listSubscribers_argsTupleScheme getScheme() {
42794 return new listSubscribers_argsTupleScheme();
42795 }
42796 }
42797
42798 private static class listSubscribers_argsTupleScheme extends TupleScheme<listSubscribers_args> {
42799
42800 @Override
42801 public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException {
42802 TTupleProtocol oprot = (TTupleProtocol) prot;
42803 BitSet optionals = new BitSet();
42804 if (struct.isSetProjectName()) {
42805 optionals.set(0);
42806 }
42807 if (struct.isSetRepositoryName()) {
42808 optionals.set(1);
42809 }
42810 if (struct.isSetPath()) {
42811 optionals.set(2);
42812 }
42813 oprot.writeBitSet(optionals, 3);
42814 if (struct.isSetProjectName()) {
42815 oprot.writeString(struct.projectName);
42816 }
42817 if (struct.isSetRepositoryName()) {
42818 oprot.writeString(struct.repositoryName);
42819 }
42820 if (struct.isSetPath()) {
42821 oprot.writeString(struct.path);
42822 }
42823 }
42824
42825 @Override
42826 public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException {
42827 TTupleProtocol iprot = (TTupleProtocol) prot;
42828 BitSet incoming = iprot.readBitSet(3);
42829 if (incoming.get(0)) {
42830 struct.projectName = iprot.readString();
42831 struct.setProjectNameIsSet(true);
42832 }
42833 if (incoming.get(1)) {
42834 struct.repositoryName = iprot.readString();
42835 struct.setRepositoryNameIsSet(true);
42836 }
42837 if (incoming.get(2)) {
42838 struct.path = iprot.readString();
42839 struct.setPathIsSet(true);
42840 }
42841 }
42842 }
42843
42844 }
42845
42846 public static class listSubscribers_result implements org.apache.thrift.TBase<listSubscribers_result, listSubscribers_result._Fields>, java.io.Serializable, Cloneable, Comparable<listSubscribers_result> {
42847 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_result");
42848
42849 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
42850 private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
42851
42852 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
42853 static {
42854 schemes.put(StandardScheme.class, new listSubscribers_resultStandardSchemeFactory());
42855 schemes.put(TupleScheme.class, new listSubscribers_resultTupleSchemeFactory());
42856 }
42857
42858 public List<Subscriber> success;
42859 public CentralDogmaException e;
42860
42861
42862 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42863 SUCCESS((short)0, "success"),
42864 E((short)1, "e");
42865
42866 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42867
42868 static {
42869 for (_Fields field : EnumSet.allOf(_Fields.class)) {
42870 byName.put(field.getFieldName(), field);
42871 }
42872 }
42873
42874
42875
42876
42877 public static _Fields findByThriftId(int fieldId) {
42878 switch(fieldId) {
42879 case 0:
42880 return SUCCESS;
42881 case 1:
42882 return E;
42883 default:
42884 return null;
42885 }
42886 }
42887
42888
42889
42890
42891
42892 public static _Fields findByThriftIdOrThrow(int fieldId) {
42893 _Fields fields = findByThriftId(fieldId);
42894 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42895 return fields;
42896 }
42897
42898
42899
42900
42901 public static _Fields findByName(String name) {
42902 return byName.get(name);
42903 }
42904
42905 private final short _thriftId;
42906 private final String _fieldName;
42907
42908 _Fields(short thriftId, String fieldName) {
42909 _thriftId = thriftId;
42910 _fieldName = fieldName;
42911 }
42912
42913 public short getThriftFieldId() {
42914 return _thriftId;
42915 }
42916
42917 public String getFieldName() {
42918 return _fieldName;
42919 }
42920 }
42921
42922
42923 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42924 static {
42925 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42926 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
42927 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
42928 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Subscriber.class))));
42929 tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
42930 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42931 metaDataMap = Collections.unmodifiableMap(tmpMap);
42932 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSubscribers_result.class, metaDataMap);
42933 }
42934
42935 public listSubscribers_result() {
42936 }
42937
42938 public listSubscribers_result(
42939 List<Subscriber> success,
42940 CentralDogmaException e)
42941 {
42942 this();
42943 this.success = success;
42944 this.e = e;
42945 }
42946
42947
42948
42949
42950 public listSubscribers_result(listSubscribers_result other) {
42951 if (other.isSetSuccess()) {
42952 List<Subscriber> __this__success = new ArrayList<Subscriber>(other.success.size());
42953 for (Subscriber other_element : other.success) {
42954 __this__success.add(new Subscriber(other_element));
42955 }
42956 this.success = __this__success;
42957 }
42958 if (other.isSetE()) {
42959 this.e = new CentralDogmaException(other.e);
42960 }
42961 }
42962
42963 public listSubscribers_result deepCopy() {
42964 return new listSubscribers_result(this);
42965 }
42966
42967 @Override
42968 public void clear() {
42969 this.success = null;
42970 this.e = null;
42971 }
42972
42973 public int getSuccessSize() {
42974 return (this.success == null) ? 0 : this.success.size();
42975 }
42976
42977 public java.util.Iterator<Subscriber> getSuccessIterator() {
42978 return (this.success == null) ? null : this.success.iterator();
42979 }
42980
42981 public void addToSuccess(Subscriber elem) {
42982 if (this.success == null) {
42983 this.success = new ArrayList<Subscriber>();
42984 }
42985 this.success.add(elem);
42986 }
42987
42988 public List<Subscriber> getSuccess() {
42989 return this.success;
42990 }
42991
42992 public listSubscribers_result setSuccess(List<Subscriber> success) {
42993 this.success = success;
42994 return this;
42995 }
42996
42997 public void unsetSuccess() {
42998 this.success = null;
42999 }
43000
43001
43002 public boolean isSetSuccess() {
43003 return this.success != null;
43004 }
43005
43006 public void setSuccessIsSet(boolean value) {
43007 if (!value) {
43008 this.success = null;
43009 }
43010 }
43011
43012 public CentralDogmaException getE() {
43013 return this.e;
43014 }
43015
43016 public listSubscribers_result setE(CentralDogmaException e) {
43017 this.e = e;
43018 return this;
43019 }
43020
43021 public void unsetE() {
43022 this.e = null;
43023 }
43024
43025
43026 public boolean isSetE() {
43027 return this.e != null;
43028 }
43029
43030 public void setEIsSet(boolean value) {
43031 if (!value) {
43032 this.e = null;
43033 }
43034 }
43035
43036 public void setFieldValue(_Fields field, Object value) {
43037 switch (field) {
43038 case SUCCESS:
43039 if (value == null) {
43040 unsetSuccess();
43041 } else {
43042 setSuccess((List<Subscriber>)value);
43043 }
43044 break;
43045
43046 case E:
43047 if (value == null) {
43048 unsetE();
43049 } else {
43050 setE((CentralDogmaException)value);
43051 }
43052 break;
43053
43054 }
43055 }
43056
43057 public Object getFieldValue(_Fields field) {
43058 switch (field) {
43059 case SUCCESS:
43060 return getSuccess();
43061
43062 case E:
43063 return getE();
43064
43065 }
43066 throw new IllegalStateException();
43067 }
43068
43069
43070 public boolean isSet(_Fields field) {
43071 if (field == null) {
43072 throw new IllegalArgumentException();
43073 }
43074
43075 switch (field) {
43076 case SUCCESS:
43077 return isSetSuccess();
43078 case E:
43079 return isSetE();
43080 }
43081 throw new IllegalStateException();
43082 }
43083
43084 @Override
43085 public boolean equals(Object that) {
43086 if (that == null)
43087 return false;
43088 if (that instanceof listSubscribers_result)
43089 return this.equals((listSubscribers_result)that);
43090 return false;
43091 }
43092
43093 public boolean equals(listSubscribers_result that) {
43094 if (that == null)
43095 return false;
43096
43097 boolean this_present_success = true && this.isSetSuccess();
43098 boolean that_present_success = true && that.isSetSuccess();
43099 if (this_present_success || that_present_success) {
43100 if (!(this_present_success && that_present_success))
43101 return false;
43102 if (!this.success.equals(that.success))
43103 return false;
43104 }
43105
43106 boolean this_present_e = true && this.isSetE();
43107 boolean that_present_e = true && that.isSetE();
43108 if (this_present_e || that_present_e) {
43109 if (!(this_present_e && that_present_e))
43110 return false;
43111 if (!this.e.equals(that.e))
43112 return false;
43113 }
43114
43115 return true;
43116 }
43117
43118 @Override
43119 public int hashCode() {
43120 List<Object> list = new ArrayList<Object>();
43121
43122 boolean present_success = true && (isSetSuccess());
43123 list.add(present_success);
43124 if (present_success)
43125 list.add(success);
43126
43127 boolean present_e = true && (isSetE());
43128 list.add(present_e);
43129 if (present_e)
43130 list.add(e);
43131
43132 return list.hashCode();
43133 }
43134
43135 @Override
43136 public int compareTo(listSubscribers_result other) {
43137 if (!getClass().equals(other.getClass())) {
43138 return getClass().getName().compareTo(other.getClass().getName());
43139 }
43140
43141 int lastComparison = 0;
43142
43143 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
43144 if (lastComparison != 0) {
43145 return lastComparison;
43146 }
43147 if (isSetSuccess()) {
43148 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
43149 if (lastComparison != 0) {
43150 return lastComparison;
43151 }
43152 }
43153 lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE());
43154 if (lastComparison != 0) {
43155 return lastComparison;
43156 }
43157 if (isSetE()) {
43158 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e);
43159 if (lastComparison != 0) {
43160 return lastComparison;
43161 }
43162 }
43163 return 0;
43164 }
43165
43166 public _Fields fieldForId(int fieldId) {
43167 return _Fields.findByThriftId(fieldId);
43168 }
43169
43170 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43171 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
43172 }
43173
43174 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43175 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
43176 }
43177
43178 @Override
43179 public String toString() {
43180 StringBuilder sb = new StringBuilder("listSubscribers_result(");
43181 boolean first = true;
43182
43183 sb.append("success:");
43184 if (this.success == null) {
43185 sb.append("null");
43186 } else {
43187 sb.append(this.success);
43188 }
43189 first = false;
43190 if (!first) sb.append(", ");
43191 sb.append("e:");
43192 if (this.e == null) {
43193 sb.append("null");
43194 } else {
43195 sb.append(this.e);
43196 }
43197 first = false;
43198 sb.append(")");
43199 return sb.toString();
43200 }
43201
43202 public void validate() throws org.apache.thrift.TException {
43203
43204
43205 }
43206
43207 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43208 try {
43209 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43210 } catch (org.apache.thrift.TException te) {
43211 throw new java.io.IOException(te);
43212 }
43213 }
43214
43215 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43216 try {
43217 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43218 } catch (org.apache.thrift.TException te) {
43219 throw new java.io.IOException(te);
43220 }
43221 }
43222
43223 private static class listSubscribers_resultStandardSchemeFactory implements SchemeFactory {
43224 public listSubscribers_resultStandardScheme getScheme() {
43225 return new listSubscribers_resultStandardScheme();
43226 }
43227 }
43228
43229 private static class listSubscribers_resultStandardScheme extends StandardScheme<listSubscribers_result> {
43230
43231 public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_result struct) throws org.apache.thrift.TException {
43232 org.apache.thrift.protocol.TField schemeField;
43233 iprot.readStructBegin();
43234 while (true)
43235 {
43236 schemeField = iprot.readFieldBegin();
43237 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
43238 break;
43239 }
43240 switch (schemeField.id) {
43241 case 0:
43242 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
43243 {
43244 org.apache.thrift.protocol.TList _list184 = iprot.readListBegin();
43245 struct.success = new ArrayList<Subscriber>(_list184.size);
43246 Subscriber _elem185;
43247 for (int _i186 = 0; _i186 < _list184.size; ++_i186)
43248 {
43249 _elem185 = new Subscriber();
43250 _elem185.read(iprot);
43251 struct.success.add(_elem185);
43252 }
43253 iprot.readListEnd();
43254 }
43255 struct.setSuccessIsSet(true);
43256 } else {
43257 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43258 }
43259 break;
43260 case 1:
43261 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
43262 struct.e = new CentralDogmaException();
43263 struct.e.read(iprot);
43264 struct.setEIsSet(true);
43265 } else {
43266 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43267 }
43268 break;
43269 default:
43270 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43271 }
43272 iprot.readFieldEnd();
43273 }
43274 iprot.readStructEnd();
43275
43276
43277 struct.validate();
43278 }
43279
43280 public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_result struct) throws org.apache.thrift.TException {
43281 struct.validate();
43282
43283 oprot.writeStructBegin(STRUCT_DESC);
43284 if (struct.success != null) {
43285 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43286 {
43287 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
43288 for (Subscriber _iter187 : struct.success)
43289 {
43290 _iter187.write(oprot);
43291 }
43292 oprot.writeListEnd();
43293 }
43294 oprot.writeFieldEnd();
43295 }
43296 if (struct.e != null) {
43297 oprot.writeFieldBegin(E_FIELD_DESC);
43298 struct.e.write(oprot);
43299 oprot.writeFieldEnd();
43300 }
43301 oprot.writeFieldStop();
43302 oprot.writeStructEnd();
43303 }
43304
43305 }
43306
43307 private static class listSubscribers_resultTupleSchemeFactory implements SchemeFactory {
43308 public listSubscribers_resultTupleScheme getScheme() {
43309 return new listSubscribers_resultTupleScheme();
43310 }
43311 }
43312
43313 private static class listSubscribers_resultTupleScheme extends TupleScheme<listSubscribers_result> {
43314
43315 @Override
43316 public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException {
43317 TTupleProtocol oprot = (TTupleProtocol) prot;
43318 BitSet optionals = new BitSet();
43319 if (struct.isSetSuccess()) {
43320 optionals.set(0);
43321 }
43322 if (struct.isSetE()) {
43323 optionals.set(1);
43324 }
43325 oprot.writeBitSet(optionals, 2);
43326 if (struct.isSetSuccess()) {
43327 {
43328 oprot.writeI32(struct.success.size());
43329 for (Subscriber _iter188 : struct.success)
43330 {
43331 _iter188.write(oprot);
43332 }
43333 }
43334 }
43335 if (struct.isSetE()) {
43336 struct.e.write(oprot);
43337 }
43338 }
43339
43340 @Override
43341 public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException {
43342 TTupleProtocol iprot = (TTupleProtocol) prot;
43343 BitSet incoming = iprot.readBitSet(2);
43344 if (incoming.get(0)) {
43345 {
43346 org.apache.thrift.protocol.TList _list189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
43347 struct.success = new ArrayList<Subscriber>(_list189.size);
43348 Subscriber _elem190;
43349 for (int _i191 = 0; _i191 < _list189.size; ++_i191)
43350 {
43351 _elem190 = new Subscriber();
43352 _elem190.read(iprot);
43353 struct.success.add(_elem190);
43354 }
43355 }
43356 struct.setSuccessIsSet(true);
43357 }
43358 if (incoming.get(1)) {
43359 struct.e = new CentralDogmaException();
43360 struct.e.read(iprot);
43361 struct.setEIsSet(true);
43362 }
43363 }
43364 }
43365
43366 }
43367
43368 }